sigprocmask: Make code safer.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 10:37:54 +0000 (12:37 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 10:37:54 +0000 (12:37 +0200)
* lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
section that changes macro definitions for this compilation unit.

ChangeLog
lib/sigprocmask.c

index b33fd7b..dec588c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-09-24  Bruno Haible  <bruno@clisp.org>
+
+       sigprocmask: Make code safer.
+       * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
+       section that changes macro definitions for this compilation unit.
+
 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        dup2: clarify by coalescing Windows-specific material
index a9aff47..6ccac5a 100644 (file)
 #include <stdint.h>
 #include <stdlib.h>
 
+#if HAVE_MSVC_INVALID_PARAMETER_HANDLER
+# include "msvc-inval.h"
+#endif
+
 /* We assume that a platform without POSIX signal blocking functions
    also does not have the POSIX sigaction() function, only the
    signal() function.  We also assume signal() has SysV semantics,
@@ -59,8 +63,6 @@
 typedef void (*handler_t) (int);
 
 #if HAVE_MSVC_INVALID_PARAMETER_HANDLER
-# include "msvc-inval.h"
-
 static inline handler_t
 signal_nothrow (int sig, handler_t handler)
 {