Allow windows users to include hammer.h
We substitute H_GCC_ATTRIBUTE to any occurence of __attribute__ and disable its function with non gcc, non clang compilers. We use a H_ macro so as to not pollute users' namespaces. On windows build without c4201 so as to allow anonymous struct. This shows hammer is not C99 compliant but rather C11.
This commit is contained in:
parent
e7620e3e4b
commit
6b9ba6033e
2 changed files with 13 additions and 3 deletions
|
|
@ -19,6 +19,9 @@ set WARNINGS=%WARNINGS% -wd4200
|
|||
REM c4204 (non-constant aggregate initializers) ressembles C99 support
|
||||
set WARNINGS=%WARNINGS% -wd4204
|
||||
|
||||
REM c4201 (anonymous unions) ressembles C11 support
|
||||
set WARNINGS=%WARNINGS% -wd4201
|
||||
|
||||
REM c4820 (warnings about padding) is not useful
|
||||
set WARNINGS=%WARNINGS% -wd4820
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue