gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libbase getopt.c


From: Vitaly Alexeev
Subject: [Gnash-commit] gnash/libbase getopt.c
Date: Mon, 25 Sep 2006 09:06:45 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Vitaly Alexeev <alexeev>        06/09/25 09:06:45

Modified files:
        libbase        : getopt.c 

Log message:
        porting to win32

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/getopt.c?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: getopt.c
===================================================================
RCS file: /sources/gnash/gnash/libbase/getopt.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- getopt.c    7 Jun 2006 04:28:46 -0000       1.1
+++ getopt.c    25 Sep 2006 09:06:45 -0000      1.2
@@ -3,34 +3,11 @@
  * make the gl.h stuff work.
  */
 
-#ifndef _INC_WINDOWS
-
-# define WINAPI        __stdcall
-# define APIENTRY WINAPI
-# define CALLBACK __stdcall
-# define DECLSPEC_IMPORT __declspec(dllimport)
-
-# if !defined(_GDI32_)
-#   define WINGDIAPI DECLSPEC_IMPORT
-# else
-#   define WINGDIAPI
-# endif
-
-#else
-# define WIN32_LEAN_AND_MEAN
-# include <windows.h>
-#endif
-
-#ifndef _WCHAR_T_DEFINED
-     typedef unsigned short wchar_t;
-#    define _WCHAR_T_DEFINED
-#endif
-
 #include <string.h>
 
-static int optind = 1;
-static char *optarg;
-static int optopt;
+int optind = 1;
+char *optarg;
+int optopt;
 
 int
 getopt(int argc, char * const argv[], char *optstring)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]