Mercurial > hg > xemacs-beta
comparison lib-src/getopt.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
29 #ifndef _NO_PROTO | 29 #ifndef _NO_PROTO |
30 #define _NO_PROTO | 30 #define _NO_PROTO |
31 #endif | 31 #endif |
32 | 32 |
33 #ifdef HAVE_CONFIG_H | 33 #ifdef HAVE_CONFIG_H |
34 #include <config.h> | 34 #include <../src/config.h> |
35 #endif | 35 #endif |
36 | 36 |
37 #include <stdio.h> | 37 #include <stdio.h> |
38 #include <string.h> | 38 #include <string.h> |
39 #include <stdlib.h> | 39 #include <stdlib.h> |
71 #if HAVE_STRING_H - 0 | 71 #if HAVE_STRING_H - 0 |
72 #include <string.h> | 72 #include <string.h> |
73 #endif | 73 #endif |
74 #endif | 74 #endif |
75 | 75 |
76 #if defined (WIN32_NATIVE) && !defined (CYGWIN) | 76 #if defined (WIN32) && !defined (__CYGWIN32__) |
77 /* It's not Unix, really. See? Capital letters. */ | 77 /* It's not Unix, really. See? Capital letters. */ |
78 #include <windows.h> | 78 #include <windows.h> |
79 #undef getpid | 79 #undef getpid |
80 #define getpid() GetCurrentProcessId() | 80 #define getpid() GetCurrentProcessId() |
81 #endif | 81 #endif |
199 On some systems, it contains special magic macros that don't work | 199 On some systems, it contains special magic macros that don't work |
200 in GCC. */ | 200 in GCC. */ |
201 #include <string.h> | 201 #include <string.h> |
202 #define my_index strchr | 202 #define my_index strchr |
203 #else | 203 #else |
204 | |
205 /* Avoid depending on library functions or files | |
206 whose names are inconsistent. */ | |
207 | |
208 char *getenv (); | |
204 | 209 |
205 static char * | 210 static char * |
206 my_index (const char *str, int chr) | 211 my_index (const char *str, int chr) |
207 { | 212 { |
208 while (*str) | 213 while (*str) |