Revert "Allow the examples to build with --disable-http"
authorRon <ron@debian.org>
Mon, 13 May 2013 08:05:41 +0000 (17:35 +0930)
committerRon <ron@debian.org>
Mon, 13 May 2013 08:05:41 +0000 (17:35 +0930)
This reverts commit 4e06a90ef61ad34d9812fb4578a4c640f868ad00.
We don't need this if we always build libopusurl.

examples/opusfile_example.c
examples/seeking_example.c

index 113a252..22a13d6 100644 (file)
@@ -155,11 +155,7 @@ int main(int _argc,const char **_argv){
   }
   else{
     /*Try to treat the argument as a URL.*/
-#if defined(OP_ENABLE_HTTP)
     of=op_open_url(_argv[1],&ret,NULL);
-#else
-    of=NULL;
-#endif
 #if 0
     if(of==NULL){
       OpusFileCallbacks  cb={NULL,NULL,NULL,NULL};
index 9f04d0b..4aabb5b 100644 (file)
@@ -275,12 +275,8 @@ int main(int _argc,const char **_argv){
   if(strcmp(_argv[1],"-")==0)fp=op_fdopen(&cb,fileno(stdin),"rb");
   else{
     /*Try to treat the argument as a URL.*/
-#if defined(OP_ENABLE_HTTP)
     fp=op_url_stream_create(&cb,_argv[1],
      OP_SSL_SKIP_CERTIFICATE_CHECK(1),NULL);
-#else
-    fp=NULL;
-#endif
     /*Fall back assuming it's a regular file name.*/
     if(fp==NULL)fp=op_fopen(&cb,_argv[1],"rb");
   }