I believe I can't post full Windef.h. Here is the interesting part:

#undef far
#define far

#undef FAR
#define FAR                 far

#ifdef _WIN64
typedef INT_PTR (FAR WINAPI *FARPROC)();
#else
typedef int (WINAPI *FARPROC)();
#endif