osx - MIN and MAX redefines macros? -
i'm porting windows c code using sdl mac. uses defs min , max. on osx, gives me warning redefinition, these appear in stdlib.
do care warning?
if so, right way attack this?
you should prepare warning defining max , min if they're not there already.
for example
#ifndef max #define max(...) // definition #endif osx
No comments:
Post a Comment