BoomerangDecompiler / boomerang

Boomerang Decompiler - Fighting the code-rot :)
Other
374 stars 59 forks source link

Fix MINGW builds #77

Closed nemerle closed 6 years ago

nemerle commented 6 years ago

Currently the code looks like this

#ifdef _MSC_VER
#    include "Windows.h"
#else
#    include <dlfcn.h>
#endif

On mingw builds, the _MSC_VER is not set, thus we attempt to use *nix path. Maybe the whole plugin stuff should be solved using Qt's support for dynamically loaded libraries ?

ceeac commented 6 years ago

I'm not very fond of forcing plugin writers to use Qt for writing plugins. Besides, it is much easier to just change the first line to read (untested)

#if defined(_MSC_VER)  || defined(__MINGW32__)