user1779715
user1779715

Reputation:

How to get gcc on Cygwin to define _WIN32?

Apparently newer versions of gcc on Cygwin no longer define _WIN32. Is there any easy way to get it back?

Upvotes: 0

Views: 1149

Answers (1)

Brian Bi
Brian Bi

Reputation: 119467

GCC allows you to define macros on the command line. The syntax would be

-D _WIN32

You could add this to CFLAGS in your makefile, or something similar.

Upvotes: 1

Related Questions