From: helly Date: Thu, 29 Dec 2005 14:32:10 +0000 (+0000) Subject: - Provide config_w32.h to be able to build out of the box on windows X-Git-Tag: 0.13.6~556 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ff493b0ffb8a24409292394011d20d85f4d5a68;p=re2c - Provide config_w32.h to be able to build out of the box on windows --- diff --git a/basics.h b/basics.h index 2e186277..f160ce24 100644 --- a/basics.h +++ b/basics.h @@ -4,6 +4,8 @@ #ifdef HAVE_CONFIG_H #include "config.h" +#elif defined(_WIN32) +#include "config_w32.h" #endif namespace re2c diff --git a/bootstrap/parser.cc b/bootstrap/parser.cc index b94a4f2c..e32fd6b0 100644 --- a/bootstrap/parser.cc +++ b/bootstrap/parser.cc @@ -83,6 +83,8 @@ #ifdef HAVE_CONFIG_H #include "config.h" +#elif defined(_WIN32) +#include "config_w32.h" #endif #include diff --git a/config_w32.h b/config_w32.h new file mode 100644 index 00000000..7c9e2312 --- /dev/null +++ b/config_w32.h @@ -0,0 +1,109 @@ +/* config.h. Generated by configure. */ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and + to 0 otherwise. */ +#define HAVE_MALLOC 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have a working `mmap' system call. */ +/* #undef HAVE_MMAP */ + +/* Define to 1 if you have the `munmap' function. */ +#define HAVE_MUNMAP 1 + +/* Define to 1 if stdbool.h conforms to C99. */ +#define HAVE_STDBOOL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if the system has the type `_Bool'. */ +#define HAVE__BOOL 1 + +/* Name of package */ +#define PACKAGE "re2c" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "re2c-general@lists.sourceforge.net" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "re2c" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "re2c 0.9.13.dev" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "re2c" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "0.9.13.dev" + +/* The size of a `char', as computed by sizeof. */ +#define SIZEOF_CHAR 1 + +/* The size of a `int', as computed by sizeof. */ +#define SIZEOF_INT 4 + +/* The size of a `long', as computed by sizeof. */ +#define SIZEOF_LONG 4 + +/* The size of a `short', as computed by sizeof. */ +#define SIZEOF_SHORT 2 + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "0.9.13.dev" + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif + +/* Define to rpl_malloc if the replacement function should be used. */ +/* #undef malloc */ + +/* Define to `unsigned' if does not define. */ +/* #undef size_t */ + +/* Define to empty if the keyword `volatile' does not work. Warning: valid + code using `volatile' can become incorrect without. Disable with care. */ +/* #undef volatile */ diff --git a/main.cc b/main.cc index 3056f036..003ee03c 100644 --- a/main.cc +++ b/main.cc @@ -1,6 +1,8 @@ /* $Id$ */ #ifdef HAVE_CONFIG_H #include "config.h" +#elif defined(_WIN32) +#include "config_w32.h" #endif #include diff --git a/re2c.vcproj b/re2c.vcproj index d1576f59..a8edba6c 100755 --- a/re2c.vcproj +++ b/re2c.vcproj @@ -20,7 +20,6 @@ Optimization="0" FavorSizeOrSpeed="1" OptimizeForProcessor="1" - PreprocessorDefinitions="HAVE_CONFIG_H" DisableLanguageExtensions="FALSE" BrowseInformation="1" DebugInformationFormat="3"/> @@ -60,7 +59,6 @@ EnableFiberSafeOptimizations="TRUE" OptimizeForProcessor="1" AdditionalIncludeDirectories="" - PreprocessorDefinitions="HAVE_CONFIG_H" SmallerTypeCheck="FALSE" BufferSecurityCheck="FALSE" DisableLanguageExtensions="FALSE" @@ -154,7 +152,7 @@ RelativePath="basics.h"> + RelativePath="config_w32.h">