warning C4003: not enough actual parameters for macro 'max' - Visual Studio 2010 C++

前端 未结 4 1439
盖世英雄少女心
盖世英雄少女心 2020-12-15 15:27

I have the following warnings while compiling an openFrameworks 007 project on Visual Studio 2010 SP1:

d:\\pedro\\development\\videoflow\\openframeworks\\lib         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 16:04

    #ifdef _WIN32
    #pragma warning(push)
    #pragma warning(disable : 4003) 
    #endif
    
    ... // code with min/max warning you wish to suppress
    
    #ifdef _WIN32
    #pragma warning(pop)
    #endif
    

提交回复
热议问题