sigprocmask: move #include directive
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Sep 2011 04:54:43 +0000 (21:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Sep 2011 05:18:37 +0000 (22:18 -0700)
* lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
Windows-specific section, so that the Emacs source need not
contain msvc-inval.h.

ChangeLog
lib/sigprocmask.c

index 3c8a7a0..2c77669 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       sigprocmask: move #include directive
+       * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
+       Windows-specific section, so that the Emacs source need not
+       contain msvc-inval.h.
+
 2011-09-23  Bruno Haible  <bruno@clisp.org>
 
        read: Support for MSVC 9.
index f1adc54..a9aff47 100644 (file)
@@ -24,8 +24,6 @@
 #include <stdint.h>
 #include <stdlib.h>
 
-#include "msvc-inval.h"
-
 /* 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,
@@ -61,6 +59,8 @@
 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)
 {