Advertisement

mingw, RawInput and #define _WIN32_WINNT 0x0501

Started by March 23, 2014 05:52 PM
-1 comments, last by fir 10 years, 8 months ago

(a bit strange situation, imo)

I wanted to code a bit of raw input api

it should not need (as i read somewhere) any external linking just

windows.h But when Im trying to compile it id does compile error,

types are not defined, Found in the net some advice that it

is becouse that _WIN32_WINNT 0x0501 is not defined - so I just

stated

#define _WIN32_WINNT 0x0501

#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#include <windows.h>

// here raw input api using code

Is it safe to do that? I do not understand this situation..

After doing that all seamlesly compiles and works

This topic is closed to new replies.

Advertisement