Commit 4a1ecba6 by Carlos Martín Nieto

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

parent 2b15f61f
...@@ -32,7 +32,6 @@ ELSE() ...@@ -32,7 +32,6 @@ ELSE()
# Windows doesn't understand POSIX regex on its own # Windows doesn't understand POSIX regex on its own
INCLUDE_DIRECTORIES(deps/regex) INCLUDE_DIRECTORIES(deps/regex)
SET(SRC_REGEX deps/regex/regex.c) SET(SRC_REGEX deps/regex/regex.c)
ADD_DEFINITIONS(-DGAWK -DNO_MBSUPPORT)
ENDIF() ENDIF()
IF (ZLIB_FOUND) IF (ZLIB_FOUND)
......
#ifndef _REGEX_CONFIG_H_
#define _REGEX_CONFIG_H_
# define GAWK
# define NO_MBSUPPORT
#endif
...@@ -18,9 +18,7 @@ ...@@ -18,9 +18,7 @@
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */ 02110-1301 USA. */
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
/* Make sure noone compiles this code with a C++ compiler. */ /* Make sure noone compiles this code with a C++ compiler. */
#ifdef __cplusplus #ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment