]> git.sesse.net Git - vlc/commitdiff
win32: remove non-standard empty struct
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Feb 2015 17:25:03 +0000 (19:25 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Feb 2015 17:25:03 +0000 (19:25 +0200)
As far as I can tell, this is not allowed by the ISO C specification
(it is permitted in C++ though).

src/win32/thread.c

index 76986759c9ff9d9fa64b438415faab5e293cfd3f..2f94fab38700dbe637b0fe270bb80879ce766bdc 100644 (file)
@@ -669,18 +669,18 @@ mtime_t mdate (void)
 
 static union
 {
+#if (_WIN32_WINNT < 0x0601)
     struct
     {
-#if (_WIN32_WINNT < 0x0601)
         BOOL (*query) (PULONGLONG);
-#endif
     } interrupt;
+#endif
+#if (_WIN32_WINNT < 0x0600)
     struct
     {
-#if (_WIN32_WINNT < 0x0600)
         ULONGLONG (*get) (void);
-#endif
     } tick;
+#endif
     struct
     {
         LARGE_INTEGER freq;