Skip to content

Commit 6c76d7b

Browse files
committed
fix potential scl_cf.h problem
1 parent 521f442 commit 6c76d7b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmake/FindLEX.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ IF(LEX_EXECUTABLE)
151151
SET(FILE_RUN_DEFINITIONS "-DYYTEXT_POINTER=1")
152152
CHECK_C_FILE_RUNS(${CMAKE_CURRENT_SOURCE_DIR}/cmake/test_srcs/sys_wait_test.c YYTEXT_POINTER)
153153
SET(FILE_RUN_DEFINITIONS)
154-
IF(CONFIG_H_FILE)
155-
CONFIG_H_APPEND(SCL "#cmakedefine YYTEXT_POINTER 1\n")
156-
ENDIF(CONFIG_H_FILE)
157154

158155

159156
ENDIF(LEX_EXECUTABLE)

include/scl_cf_cmake.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#cmakedefine HAVE_PROCESS_H 1
1414
#cmakedefine HAVE_IO_H 1
1515

16+
#cmakedefine YYTEXT_POINTER 1
17+
1618
#cmakedefine HAVE_ABS 1
1719
#cmakedefine HAVE_MEMCPY 1
1820
#cmakedefine HAVE_MEMMOVE 1

0 commit comments

Comments
 (0)