diff options
author | Martin Willi <martin@revosec.ch> | 2010-03-03 10:44:01 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-03-03 10:44:49 +0100 |
commit | 1abab9ec4f69fa9629df2e0b6b0b68ab48efc1ce (patch) | |
tree | cc76dc05300a75de202dc433d7905ec78468961e /src/libstrongswan/utils.h | |
parent | 1be3298807bd09b97d144c29af780e0c591555d4 (diff) | |
download | strongswan-1abab9ec4f69fa9629df2e0b6b0b68ab48efc1ce.tar.bz2 strongswan-1abab9ec4f69fa9629df2e0b6b0b68ab48efc1ce.tar.xz |
Use "static const", some GCCs don't like "const static"
Diffstat (limited to 'src/libstrongswan/utils.h')
-rw-r--r-- | src/libstrongswan/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/utils.h b/src/libstrongswan/utils.h index 562521703..367e75ef2 100644 --- a/src/libstrongswan/utils.h +++ b/src/libstrongswan/utils.h @@ -125,7 +125,7 @@ #define METHOD(iface, name, ret, this, ...) \ static ret name(union {iface *_public; this;} \ __attribute__((transparent_union)), ##__VA_ARGS__); \ - const static typeof(name) *_##name = (const typeof(name)*)name; \ + static const typeof(name) *_##name = (const typeof(name)*)name; \ static ret name(this, ##__VA_ARGS__) /** @@ -134,7 +134,7 @@ #define METHOD2(iface1, iface2, name, ret, this, ...) \ static ret name(union {iface1 *_public1; iface2 *_public2; this;} \ __attribute__((transparent_union)), ##__VA_ARGS__); \ - const static typeof(name) *_##name = (const typeof(name)*)name; \ + static const typeof(name) *_##name = (const typeof(name)*)name; \ static ret name(this, ##__VA_ARGS__) /** |