* Add a proper way to enable/disable PSEH3.

svn path=/trunk/; revision=60190
This commit is contained in:
Amine Khaldi 2013-09-17 22:31:33 +00:00
parent 8c64e4dd16
commit 61fde33ba7
4 changed files with 9 additions and 12 deletions

View file

@ -129,10 +129,6 @@ else()
add_definitions(-D_WINKD_=1)
endif()
if(USE_PSEH3)
add_definitions(-D_USE_PSEH3=1)
endif()
# Version Options
add_definitions(-DWINVER=0x502
-D_WIN32_IE=0x600

View file

@ -71,15 +71,8 @@ set(GENERATE_DEPENDENCY_GRAPH FALSE CACHE BOOL
"Whether to create a graphml dependency of dlls.")
if(MSVC)
set(_PREFAST_ FALSE CACHE BOOL
"Whether to enable PREFAST while compiling.")
set(_VS_ANALYZE_ FALSE CACHE BOOL
"Whether to enable static analysis while compiling.")
else()
set(USE_PSEH3 FALSE CACHE BOOL
"Whether to use the new PSEH3 library (requires GCC 4.5 and newer).")
endif()

View file

@ -9,6 +9,14 @@ if(NOT DEFINED SEPARATE_DBG)
set(SEPARATE_DBG FALSE)
endif()
if(NOT DEFINED USE_PSEH3)
set(USE_PSEH3 0)
endif()
if(USE_PSEH3)
add_definitions(-D_USE_PSEH3=1)
endif()
# Compiler Core
add_compile_flags("-pipe -fms-extensions -fno-strict-aliasing")
if(GCC_VERSION VERSION_GREATER 4.7)

View file

@ -1,7 +1,7 @@
if(NOT MSVC)
if (USE_PSEH3)
if(USE_PSEH3)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/pseh)
list(APPEND SOURCE
i386/pseh3.c