libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit db6a1ba7af9ff0b1471f2ab3c3ad62222a64a635
parent 386f371dcac02bf3d706b171599782ebb79ed473
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun,  1 Oct 2017 13:44:29 +0300

mhd_options.h: better detect compiler optimization option

Diffstat:
Msrc/include/mhd_options.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h @@ -109,9 +109,9 @@ #if !defined(MHD_FAVOR_FAST_CODE) && !defined(MHD_FAVOR_SMALL_CODE) /* Try to detect user preferences */ /* Defined by GCC and many compatible compilers */ -#ifdef __OPTIMIZE_SIZE__ +#if defined(__OPTIMIZE_SIZE__) #define MHD_FAVOR_SMALL_CODE 1 -#elif __OPTIMIZE__ +#elif defined(__OPTIMIZE__) #define MHD_FAVOR_FAST_CODE 1 #endif /* __OPTIMIZE__ */ #endif /* !MHD_FAVOR_FAST_CODE && !MHD_FAVOR_SMALL_CODE */