G
G
Gokilla2018-08-10 12:57:59
linux
Gokilla, 2018-08-10 12:57:59

What macros do Linux and Windows have?

I'm writing a cross-platform project need macro names something like:

#ifdef _WINDOWS_
    #include "Windows.h"
#elseif _UNIX_
    #include "SDL.h"
#endif

_UNIX_,_WINDOWS_ - which macros? Will visual studio ,codeblocks work correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2018-08-10
@res2001

Look here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question