]> git.pond.sub.org Git - empserver/commitdiff
Fix portability bug in configure test for Windows API
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 11 Aug 2012 13:36:07 +0000 (15:36 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 11 Aug 2012 13:36:56 +0000 (15:36 +0200)
The test uses an erroneous non-directive within #ifdef _WIN32 to
signal that _WIN32 is defined.  Some compilers choke on this even when
_WIN32 isn't defined.  Observed with FreeBSD 4.10's gcc 2.95.4.
Broken in commit c02468fd, v4.3.22.  Standaline client build already
broken in commit 774b590f, v4.3.17.

Use an unmatched brace instead.

m4/my_windows_api.m4

index e24481b7bf5363b08d4f7c2a542fc41f8a45261e..63a2af622a4c48dd9fb12a9d8470ce7c92a8f21b 100644 (file)
@@ -3,7 +3,7 @@ AC_DEFUN([MY_WINDOWS_API],
        AC_MSG_CHECKING([whether compiling for Windows API])
        AC_COMPILE_IFELSE(
                [AC_LANG_SOURCE([[#ifdef _WIN32
-#Here's a nickel, kid
+{ /* Here's a nickel, kid */
 #endif]])],
                [Windows_API=no],
                [Windows_API=yes])