gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/04: mhd_options.h: better detect compile


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/04: mhd_options.h: better detect compiler optimization option
Date: Sun, 01 Oct 2017 16:02:54 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit db6a1ba7af9ff0b1471f2ab3c3ad62222a64a635
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Oct 1 13:44:29 2017 +0300

    mhd_options.h: better detect compiler optimization option
---
 src/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
index 8d9cedd2..36a5f575 100644
--- 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 */

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]