regex: Move the defines to a config header and include it unconditionally

This commit is contained in:
Carlos Martín Nieto 2012-02-18 00:54:03 +01:00
parent 2b15f61f48
commit 4a1ecba6d9
3 changed files with 7 additions and 3 deletions

View File

@ -32,7 +32,6 @@ ELSE()
# Windows doesn't understand POSIX regex on its own
INCLUDE_DIRECTORIES(deps/regex)
SET(SRC_REGEX deps/regex/regex.c)
ADD_DEFINITIONS(-DGAWK -DNO_MBSUPPORT)
ENDIF()
IF (ZLIB_FOUND)

7
deps/regex/config.h vendored Normal file
View File

@ -0,0 +1,7 @@
#ifndef _REGEX_CONFIG_H_
#define _REGEX_CONFIG_H_
# define GAWK
# define NO_MBSUPPORT
#endif

2
deps/regex/regex.c vendored
View File

@ -18,9 +18,7 @@
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* Make sure noone compiles this code with a C++ compiler. */
#ifdef __cplusplus