nemerle / dcc

This is a heavily updated version of the old DOS executable decompiler DCC
GNU General Public License v2.0
146 stars 27 forks source link

Use of malloc.h #28

Closed Godzil closed 7 years ago

Godzil commented 7 years ago

Some files (like pasehdr.cpp, makedsig.cpp and control.cpp) use the windows only malloc.h header file. On UNIX-y Linux or Mac OS X, this header is non existent as malloc is normally defined in stdlib.h

I never understood why Microsoft have done that, but it would be nice to explicitely not try to add the malloc.h file if trying to compile on another system than Windows

A simple

ifdef WIN32

include

endif

should be enough

nemerle commented 7 years ago

I don't think those includes are needed/used anyway, will remove them outright, thanks.