diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2021-08-10 11:33:09 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2021-08-10 11:33:09 +0100 |
commit | 895ff3ad146837eef8a5321cacd3cf15a3a329e4 (patch) | |
tree | e43bc2a68a3ce50ddcb697a938d19dae9f72412c /ftmacros.h | |
parent | bcf5876ff95461a114bd75ca468a6ecd94193878 (diff) |
Do not define __EXTENSIONS__ if already defined. [skip ci]
Same as in tcpdump.
./ftmacros.h:48:11: warning: '__EXTENSIONS__' macro redefined
[-Wmacro-redefined]
<built-in>:347:9: note: previous definition is here
Diffstat (limited to 'ftmacros.h')
-rw-r--r-- | ftmacros.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -45,7 +45,12 @@ * namespace to the maximum extent possible"? */ #if defined(sun) || defined(__sun) - #define __EXTENSIONS__ + /* + * On Solaris Clang defines __EXTENSIONS__ automatically. + */ + #ifndef __EXTENSIONS__ + #define __EXTENSIONS__ + #endif /* * We also need to define _XPG4_2 in order to get |