Config.Win32.pp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. //
  2. // Config.Win32.pp
  3. //
  4. // This file defines some custom config variables for the Windows
  5. // platform, using MS VC++. It makes some initial guesses about
  6. // compiler features, etc.
  7. //
  8. // What additional flags should we pass to interrogate?
  9. // NSPR versions prior to 4.4 used _declspec instead of __declspec.
  10. #define SYSTEM_IGATE_FLAGS -longlong __int64 -D_X86_ -DWIN32_VC -D"_declspec(param)=" -D"__declspec(param)=" -D_near -D_far -D__near -D__far -D_WIN32 -D__stdcall
  11. // Is the platform big-endian (like an SGI workstation) or
  12. // little-endian (like a PC)? Define this to the empty string to
  13. // indicate little-endian, or nonempty to indicate big-endian.
  14. #define WORDS_BIGENDIAN
  15. // Does the C++ compiler support namespaces?
  16. #define HAVE_NAMESPACE 1
  17. // Does the C++ compiler support ios::binary?
  18. #define HAVE_IOS_BINARY 1
  19. // How about the typename keyword?
  20. #define HAVE_TYPENAME 1
  21. // Will the compiler avoid inserting extra bytes in structs between a
  22. // base struct and its derived structs? It is safe to define this
  23. // false if you don't know, but if you know that you can get away with
  24. // this you may gain a tiny performance gain by defining this true.
  25. // If you define this true incorrectly, you will get lots of
  26. // assertion failures on execution.
  27. #define SIMPLE_STRUCT_POINTERS 1
  28. // Do we have a gettimeofday() function?
  29. #define HAVE_GETTIMEOFDAY
  30. // Does gettimeofday() take only one parameter?
  31. #define GETTIMEOFDAY_ONE_PARAM
  32. // Do we have getopt() and/or getopt_long_only() built into the
  33. // system?
  34. #define HAVE_GETOPT
  35. #define HAVE_GETOPT_LONG_ONLY
  36. // Are the above getopt() functions defined in getopt.h, or somewhere else?
  37. #define HAVE_GETOPT_H
  38. // Can we determine the terminal width by making an ioctl(TIOCGWINSZ) call?
  39. #define IOCTL_TERMINAL_WIDTH
  40. // Do the system headers define a "streamsize" typedef? How about the
  41. // ios::binary enumerated value? And other ios typedef symbols like
  42. // ios::openmode and ios::fmtflags?
  43. #define HAVE_STREAMSIZE 1
  44. #define HAVE_IOS_BINARY 1
  45. #define HAVE_IOS_TYPEDEFS 1
  46. // Can we safely call getenv() at static init time?
  47. #define STATIC_INIT_GETENV 1
  48. // Can we read the file /proc/self/environ to determine our
  49. // environment variables at static init time?
  50. #define HAVE_PROC_SELF_ENVIRON
  51. // Do we have a global pair of argc/argv variables that we can read at
  52. // static init time? Should we prototype them? What are they called?
  53. #define HAVE_GLOBAL_ARGV 1
  54. #define PROTOTYPE_GLOBAL_ARGV
  55. #define GLOBAL_ARGV __argv
  56. #define GLOBAL_ARGC __argc
  57. // Can we read the file /proc/self/cmdline to determine our
  58. // command-line arguments at static init time?
  59. #define HAVE_PROC_SELF_CMDLINE
  60. // Should we include <iostream> or <iostream.h>? Define HAVE_IOSTREAM
  61. // to nonempty if we should use <iostream>, or empty if we should use
  62. // <iostream.h>.
  63. #define HAVE_IOSTREAM 1
  64. // Do we have a true stringstream class defined in <sstream>?
  65. #define HAVE_SSTREAM 1
  66. // Does fstream::open() require a third parameter, specifying the
  67. // umask?
  68. #define HAVE_OPEN_MASK
  69. // Do the compiler or system libraries define wchar_t for you?
  70. #define HAVE_WCHAR_T 1
  71. // Does <string> define the typedef wstring? Most do, but for some
  72. // reason, versions of gcc before 3.0 didn't do this.
  73. #define HAVE_WSTRING 1
  74. // Do we have <new>?
  75. #define HAVE_NEW 1
  76. // Do we have <io.h>?
  77. #define HAVE_IO_H 1
  78. // Do we have <malloc.h>?
  79. #define HAVE_MALLOC_H 1
  80. // Do we have <alloca.h>?
  81. #define HAVE_ALLOCA_H
  82. // Do we have <locale.h>?
  83. #define HAVE_LOCALE_H
  84. // Do we have <minmax.h>?
  85. #define HAVE_MINMAX_H 1
  86. // Do we have <sys/types.h>?
  87. #define HAVE_SYS_TYPES_H 1
  88. #define HAVE_SYS_TIME_H
  89. // Do we have <unistd.h>?
  90. #define HAVE_UNISTD_H
  91. // Do we have <utime.h>?
  92. #define HAVE_UTIME_H
  93. // Do we have <dirent.h>?
  94. #define HAVE_DIRENT_H
  95. // Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  96. // interface)?
  97. #define HAVE_SYS_SOUNDCARD_H
  98. // Do we have RTTI (and <typeinfo>)?
  99. #define HAVE_RTTI 1
  100. // Must global operator new and delete functions throw exceptions?
  101. #define GLOBAL_OPERATOR_NEW_EXCEPTIONS
  102. // can Intel C++ build this directory successfully (if not, change CC to msvc)
  103. #define NOT_INTEL_BUILDABLE false
  104. // The dynamic library file extension (usually .so .dll or .dylib):
  105. #define DYNAMIC_LIB_EXT .dll