]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: fix guard on struct siginfo_t
authorYaakov Selkowitz <yselkowi@redhat.com>
Fri, 7 Jul 2017 22:33:59 +0000 (17:33 -0500)
committerYaakov Selkowitz <yselkowi@redhat.com>
Mon, 10 Jul 2017 12:53:26 +0000 (07:53 -0500)
Add line breaks to make it clearer that the struct packing applies to more
than one struct.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
winsup/cygwin/include/cygwin/signal.h

index e73874c62f337c5d4e80bea71a1e257aefcc36ef..af0833688746a7dbdd69b4a5dc6fe042858a029d 100644 (file)
@@ -175,7 +175,10 @@ typedef struct sigevent
   pthread_attr_t *sigev_notify_attributes; /* notification attributes */
 } sigevent_t;
 
+#if __POSIX_VISIBLE >= 199309
+
 #pragma pack(push,4)
+
 struct _sigcommune
 {
   __uint32_t _si_code;
@@ -190,8 +193,6 @@ struct _sigcommune
   };
 };
 
-#if __POSIX_VISIBLE >= 199309
-
 #define __SI_PAD_SIZE 32
 #ifdef __INSIDE_CYGWIN__
 # ifndef max
@@ -251,6 +252,7 @@ typedef struct
 #endif /*__INSIDE_CYGWIN__*/
   };
 } siginfo_t;
+
 #pragma pack(pop)
 
 #endif /* __POSIX_VISIBLE >= 199309 */
This page took 0.029894 seconds and 5 git commands to generate.