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:
@@ -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@
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
@@ -20,7 +20,7 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#ifdef HAVE_GETOPT_LONG
|
||||
# include <getopt.h>
|
||||
#else
|
||||
# include "getopt/getopt.h"
|
||||
|
||||
Reference in New Issue
Block a user