1
1

Define YY_NO_UNISTD_H in the source file property. It's defined in opal_include_bottom.h, but when the lex files are generated on Windows, the unistd.h is include before opal_include_bottom.h.

This commit was SVN r22521.
Этот коммит содержится в:
Shiqing Fan 2010-01-31 20:39:43 +00:00
родитель bdc13dacb1
Коммит 4040d40c82

Просмотреть файл

@ -89,6 +89,7 @@ MACRO(ADD_FLEX_FILE _sourcelist _source _prefix _output_dir)
IF (NOT ${RESULT} STREQUAL "1") IF (NOT ${RESULT} STREQUAL "1")
MESSAGE(STATUS "${ERROR}parse ${_basename} with flex...done") MESSAGE(STATUS "${ERROR}parse ${_basename} with flex...done")
SET_SOURCE_FILES_PROPERTIES(${_out} PROPERTIES COMPILE_DEFINITIONS YY_NO_UNISTD_H)
ELSE (NOT ${RESULT} STREQUAL "1") ELSE (NOT ${RESULT} STREQUAL "1")
MESSAGE(FATAL_ERROR "${ERROR}parse ${_basename} with flex...failed") MESSAGE(FATAL_ERROR "${ERROR}parse ${_basename} with flex...failed")
ENDIF (NOT ${RESULT} STREQUAL "1") ENDIF (NOT ${RESULT} STREQUAL "1")