Changeset 3015


Ignore:
Timestamp:
2002-02-27T13:10:35+13:00 (22 years ago)
Author:
jrm21
Message:

include getopt_old.h if we are compiling on cygwin

Location:
trunk/gsdl/src/mgpp/text
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/Queryer.cpp

    r2557 r3015  
    2323#define _XOPEN_SOURCE_EXTENDED 1
    2424
    25 #if defined (__WIN32__)
     25/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     26#if defined (__WIN32__) || defined (__CYGWIN__)
    2627# include "getopt_old.h"
    2728#else
  • trunk/gsdl/src/mgpp/text/mgpp_compression_dict.cpp

    r2928 r3015  
    2828#endif
    2929
    30 #if defined (__WIN32__)
     30/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     31#if defined (__WIN32__) || defined (__CYGWIN__)
    3132# include "getopt_old.h"
    3233#else
  • trunk/gsdl/src/mgpp/text/mgpp_decompress_text.cpp

    r2557 r3015  
    2323#define _XOPEN_SOURCE_EXTENDED 1
    2424
    25 #if defined __WIN32__
     25/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     26#if defined (__WIN32__) || defined (__CYGWIN__)
    2627# include "getopt_old.h"
    2728#else
  • trunk/gsdl/src/mgpp/text/mgpp_fast_comp_dict.cpp

    r2928 r3015  
    2828#endif
    2929
    30 #if defined (__WIN32__)
     30/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     31#if defined (__WIN32__) || defined (__CYGWIN__)
    3132# include "getopt_old.h"
    3233#else
  • trunk/gsdl/src/mgpp/text/mgpp_invf_dict.cpp

    r2557 r3015  
    2828#endif
    2929
    30 #if defined (__WIN32__)
     30/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     31#if defined (__WIN32__) || defined (__CYGWIN__)
    3132# include "getopt_old.h"
    3233#else
  • trunk/gsdl/src/mgpp/text/mgpp_invf_dict_dump.cpp

    r2557 r3015  
    2828#endif
    2929
    30 #if defined (__WIN32__)
     30/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     31#if defined (__WIN32__) || defined (__CYGWIN__)
    3132# include "getopt_old.h"
    3233#else
  • trunk/gsdl/src/mgpp/text/mgpp_invf_dump.cpp

    r2557 r3015  
    2828#endif
    2929
    30 #if defined (__WIN32__)
     30/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     31#if defined (__WIN32__) || defined (__CYGWIN__)
    3132# include "getopt_old.h"
    3233#else
  • trunk/gsdl/src/mgpp/text/mgpp_passes.cpp

    r2557 r3015  
    4040# define close _close
    4141# define open _open
     42#elif defined __CYGWIN__
     43#include "getopt_old.h"
    4244#else
    4345# include <unistd.h>
  • trunk/gsdl/src/mgpp/text/mgpp_perf_hash_build.cpp

    r3008 r3015  
    2828#endif
    2929
    30 #if defined (__WIN32__)
     30/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     31#if defined (__WIN32__) || defined (__CYGWIN__)
    3132# include "getopt_old.h"
    3233#else
  • trunk/gsdl/src/mgpp/text/mgpp_stem_idx.cpp

    r3008 r3015  
    2323#define _XOPEN_SOURCE_EXTENDED 1
    2424
    25 #if defined (__WIN32__)
     25/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     26#if defined (__WIN32__) || defined (__CYGWIN__)
    2627# include "getopt_old.h"
    2728#else
  • trunk/gsdl/src/mgpp/text/mgpp_weights_build.cpp

    r2557 r3015  
    2323#define _XOPEN_SOURCE_EXTENDED 1
    2424
    25 #if defined (__WIN32__)
     25/* getopt is in posix.2, so cygwin should have it in unistd, but doesn't */
     26#if defined (__WIN32__) || defined (__CYGWIN__)
    2627# include "getopt_old.h"
    2728#else
Note: See TracChangeset for help on using the changeset viewer.