diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-01 13:44:29 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-01 13:44:29 +0300 |
commit | db6a1ba7af9ff0b1471f2ab3c3ad62222a64a635 (patch) | |
tree | d1b516944da2129eee492726c00d988aecc1f5ea | |
parent | 386f371dcac02bf3d706b171599782ebb79ed473 (diff) | |
download | libmicrohttpd-db6a1ba7af9ff0b1471f2ab3c3ad62222a64a635.tar.gz libmicrohttpd-db6a1ba7af9ff0b1471f2ab3c3ad62222a64a635.zip |
mhd_options.h: better detect compiler optimization option
-rw-r--r-- | src/include/mhd_options.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h index 8d9cedd2..36a5f575 100644 --- a/src/include/mhd_options.h +++ b/src/include/mhd_options.h | |||
@@ -109,9 +109,9 @@ | |||
109 | #if !defined(MHD_FAVOR_FAST_CODE) && !defined(MHD_FAVOR_SMALL_CODE) | 109 | #if !defined(MHD_FAVOR_FAST_CODE) && !defined(MHD_FAVOR_SMALL_CODE) |
110 | /* Try to detect user preferences */ | 110 | /* Try to detect user preferences */ |
111 | /* Defined by GCC and many compatible compilers */ | 111 | /* Defined by GCC and many compatible compilers */ |
112 | #ifdef __OPTIMIZE_SIZE__ | 112 | #if defined(__OPTIMIZE_SIZE__) |
113 | #define MHD_FAVOR_SMALL_CODE 1 | 113 | #define MHD_FAVOR_SMALL_CODE 1 |
114 | #elif __OPTIMIZE__ | 114 | #elif defined(__OPTIMIZE__) |
115 | #define MHD_FAVOR_FAST_CODE 1 | 115 | #define MHD_FAVOR_FAST_CODE 1 |
116 | #endif /* __OPTIMIZE__ */ | 116 | #endif /* __OPTIMIZE__ */ |
117 | #endif /* !MHD_FAVOR_FAST_CODE && !MHD_FAVOR_SMALL_CODE */ | 117 | #endif /* !MHD_FAVOR_FAST_CODE && !MHD_FAVOR_SMALL_CODE */ |