Skip to content
Snippets Groups Projects
Commit 886b3441 authored by Yuchen Zeng's avatar Yuchen Zeng
Browse files

Modified the template of public_headers_must_be_c89.c

parent 12dfdc3c
No related branches found
No related tags found
No related merge requests found
...@@ -345,7 +345,7 @@ typedef unsigned __int64 uint64_t; ...@@ -345,7 +345,7 @@ typedef unsigned __int64 uint64_t;
/* Validate platform combinations */ /* Validate platform combinations */
#if defined(GPR_GCC_ATOMIC) + defined(GPR_GCC_SYNC) + \ #if defined(GPR_GCC_ATOMIC) + defined(GPR_GCC_SYNC) + \
defined(GPR_WINDOWS_ATOMIC) != \ defined(GPR_WINDOWS_ATOMIC) != \
1 1
#error Must define exactly one of GPR_GCC_ATOMIC, GPR_GCC_SYNC, GPR_WINDOWS_ATOMIC #error Must define exactly one of GPR_GCC_ATOMIC, GPR_GCC_SYNC, GPR_WINDOWS_ATOMIC
#endif #endif
...@@ -355,7 +355,7 @@ typedef unsigned __int64 uint64_t; ...@@ -355,7 +355,7 @@ typedef unsigned __int64 uint64_t;
#endif #endif
#if defined(GPR_CPU_LINUX) + defined(GPR_CPU_POSIX) + defined(GPR_WINDOWS) + \ #if defined(GPR_CPU_LINUX) + defined(GPR_CPU_POSIX) + defined(GPR_WINDOWS) + \
defined(GPR_CPU_IPHONE) + defined(GPR_CPU_CUSTOM) != \ defined(GPR_CPU_IPHONE) + defined(GPR_CPU_CUSTOM) != \
1 1
#error Must define exactly one of GPR_CPU_LINUX, GPR_CPU_POSIX, GPR_WINDOWS, GPR_CPU_IPHONE, GPR_CPU_CUSTOM #error Must define exactly one of GPR_CPU_LINUX, GPR_CPU_POSIX, GPR_WINDOWS, GPR_CPU_IPHONE, GPR_CPU_CUSTOM
#endif #endif
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<% <%
def is_platform_header(hdr): def is_platform_header(hdr):
for platform_identifier in ['_gcc', '_win32', '_pthread', for platform_identifier in ['_gcc', '_windows', '_pthread',
'_zookeeper', '_msvc', '_posix']: '_zookeeper', '_msvc', '_posix']:
if platform_identifier in hdr: if platform_identifier in hdr:
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment