[xiph-commits] r14721 - trunk/theora/examples

giles at svn.xiph.org giles at svn.xiph.org
Sat Apr 12 23:23:04 PDT 2008


Author: giles
Date: 2008-04-12 23:23:04 -0700 (Sat, 12 Apr 2008)
New Revision: 14721

Modified:
   trunk/theora/examples/encoder_example.c
Log:
Include the local getopt.h when building under MSVC.
Patch from Andrew Chew.


Modified: trunk/theora/examples/encoder_example.c
===================================================================
--- trunk/theora/examples/encoder_example.c	2008-04-12 21:14:35 UTC (rev 14720)
+++ trunk/theora/examples/encoder_example.c	2008-04-13 06:23:04 UTC (rev 14721)
@@ -33,10 +33,14 @@
 #endif
 
 #include <stdio.h>
+#if !defined(_WIN32)
+#include <getopt.h>
 #include <unistd.h>
+#else
+#include "getopt.h"
+#endif
 #include <stdlib.h>
 #include <string.h>
-#include <getopt.h>
 #include <time.h>
 #include <math.h>
 #include "theora/theoraenc.h"



More information about the commits mailing list