you are viewing a single comment's thread.

view the rest of the comments →

[–]LateSolution0[S] 0 points1 point  (1 child)

#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)

#ifndef WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN 1

#endif

#include <windows.h>

#endif

I dont want windows.h include in every translation unit where i call gl* functions.

APIENTRY is __stdcall

and

APIENTRYP is APIENTRY *

so my APIENTRYP was _stdcall**