We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579b798 commit 807a696Copy full SHA for 807a696
cmake/win32/CMakeLists.txt
@@ -102,6 +102,20 @@ target_compile_definitions(
102
$<$<EQUAL:${CMAKE_SIZEOF_VOID_P},4>:_USE_32BIT_TIME_T=1>
103
)
104
105
+# Enable signed functions in <intsafe.h>, while Clang uses __builtin_*().
106
+if(NOT CMAKE_C_COMPILER_ID MATCHES "Clang")
107
+ target_compile_definitions(
108
+ php_config
109
+ INTERFACE $<$<COMPILE_LANGUAGE:C>:ENABLE_INTSAFE_SIGNED_FUNCTIONS>
110
+ )
111
+endif()
112
+if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
113
114
115
+ INTERFACE $<$<COMPILE_LANGUAGE:CXX>:ENABLE_INTSAFE_SIGNED_FUNCTIONS>
116
117
118
+
119
# MS deprecated ANSI stdio and similar functions. Disable warnings.
120
target_compile_options(
121
php_config
0 commit comments