graphitemaster / incbin

Include binary files in C/C++
The Unlicense
938 stars 87 forks source link

incbin.c: Visual Studio 2017 missing MAX_PATH #32

Closed AlexMax closed 4 years ago

AlexMax commented 5 years ago

Pretty simple. If I compile incbin.c using Visual Studio 2017, it complains about a missing MAX_PATH.

The following invocation gives me what I need. It's a little overkill, but it's probably the safest way to ensure MAX_PATH exists.

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
graphitemaster commented 4 years ago

This has been fixed