Config.Win32.pp 4.6 KB

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