mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-17 19:29:53 +00:00
regex: Move the defines to a config header and include it unconditionally
This commit is contained in:
parent
2b15f61f48
commit
4a1ecba6d9
@ -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
7
deps/regex/config.h
vendored
Normal 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
2
deps/regex/regex.c
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user