Some small portability improvements.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2199 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2006-01-19 19:13:39 +00:00
parent 91d88d0e53
commit a8ab8facbe
9 changed files with 18 additions and 17 deletions
+2 -2
View File
@@ -40,8 +40,8 @@
/* Defined if your system has stricmp of its own */
@HAVE_STRICMP@
/* Defined if your system has getopt.h */
@HAVE_GETOPT_H@
/* Defined if your system has getopt_long */
@HAVE_GETOPT_LONG@
/* Defined if your system has iswgraph of its own*/
@HAVE_ISWGRAPH@
+2 -2
View File
@@ -29,7 +29,7 @@
#include <config.h>
#ifndef HAVE_GETOPT_H
#ifndef HAVE_GETOPT_LONG
#if !defined __STDC__ || !__STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
@@ -1057,4 +1057,4 @@ main (argc, argv)
#endif /* TEST */
#endif /* HAVE_GETOPT_H */
#endif /* HAVE_GETOPT_LONG */
+2 -2
View File
@@ -20,7 +20,7 @@
#include <config.h>
#ifndef HAVE_GETOPT_H
#ifndef HAVE_GETOPT_LONG
#include "getopt.h"
#if !defined __STDC__ || !__STDC__
@@ -186,4 +186,4 @@ main (argc, argv)
#endif /* TEST */
#endif /* HAVE_GETOPT_H */
#endif /* HAVE_GETOPT_LONG */
+2 -2
View File
@@ -41,8 +41,8 @@
/* Defined if your system has stricmp of its own */
#define HAVE_STRICMP
/* Defined if your system has getopt.h */
#undef HAVE_GETOPT_H
/* Defined if your system has getopt_long */
#undef HAVE_GETOPT_LONG
/* Defined if your system has iswgraph of its own*/
#define HAVE_ISWGRAPH
@@ -20,7 +20,6 @@
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include "port.h"
#include "types.h"
#include "uio.h"
+1 -1
View File
@@ -20,7 +20,7 @@
# include <unistd.h>
#endif
#ifdef HAVE_GETOPT_H
#ifdef HAVE_GETOPT_LONG
# include <getopt.h>
#else
# include "getopt/getopt.h"