MinGW not defining WIN32, error in preprocessor directives

后端 未结 2 1559
我在风中等你
我在风中等你 2021-01-02 04:10

I am using mingw32-make to compile a project to Windows, which depends on a project called libevent2. I keep receiving this error -

util.h:69:25: fatal error         


        
2条回答
  •  不知归路
    2021-01-02 05:04

    You should use _WIN32 and may also want to check for __CYGWIN__

    #if defined _WIN32 || defined __CYGWIN__
    

提交回复
热议问题