﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	revision
595	MinGW (codeblocks) compilation problem	Alpar Juttner	Alpar Juttner	"We use `WIN32` define at several places in order to check the underlying macro. This however does not work with (at least recent versions of) `MinGW` and `CodeBlocks`, because it does node define `WIN32`.

[http://stackoverflow.com/questions/9025708/mingw-not-defining-win32-error-in-preprocessor-directives This link] indicates that this is actually the expected behaviour. The compiler normally defines `_WIN32`.

What shall we do? I can imagine the following resolutions.

1. Replace `WIN32` to `_WIN32` everywhere in the code
2. Put something like
{{{
#ifdef _WIN32
#ifndef WIN32
#define WIN32
#endif
#endif
}}}
into `core.h`
3. Have the platform checked by `CMAKE` and put the `WIN32` define conditionally to `lemon/config.h` (generated from [source:lemon/lemon/config.h.in lemon/config.h.in])

We may define `LEMON_WIN32` instead of `WIN32`.

Which option do you prefer?
"	defect	closed	critical	LEMON 1.4 release	core	hg main	fixed			
