]> O.S.I.I.S - jp/vkvg.git/commitdiff
Fix building on MSYS2 MinGW
authoriahuntn <126607423+iahuntn@users.noreply.github.com>
Wed, 1 Mar 2023 11:10:21 +0000 (18:10 +0700)
committerj-p <jp_bruyere@hotmail.com>
Wed, 1 Mar 2023 17:54:49 +0000 (18:54 +0100)
tests/common/test.h

index c2ddaf0109732c8f06dbdcb97528e786f5e974a0..e693071365896f7b41811cf5b9e6c95c58a35c50 100644 (file)
        */
 
        // *sigh* Microsoft has this in winsock2.h because they are too lazy to put it in the standard location ... !?!?
+#ifdef _MSC_VER
        typedef struct timeval {
                long tv_sec;
                long tv_usec;
        } timeval;
+#endif
 
        // *sigh* no gettimeofday on Win32/Win64
        int gettimeofday(struct timeval * tp, void * tzp);