win32 lean and mean



Автор Aus задал вопрос в разделе Другие языки и технологии

Совместимость программ и получил лучший ответ

Ответ от Panic Doctor[гуру]
вот кусок из заголовочного файла библиотеки OpenGL/********************************************************************** * Begin system-specific stuff. */#if defined(_WIN32) && !defined(__WIN32__) && !defined(__CYGWIN__)#define __WIN32__#endif#if defined(__WIN32__) && !defined(__CYGWIN__)# if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */# define GLAPI __declspec(dllexport)# elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag specifying we're building for DLL runtime support */# define GLAPI __declspec(dllimport)# else /* for use with static link lib build of Win32 edition only */# define GLAPI extern# endif /* _STATIC_MESA support */# if defined(__MINGW32__) && defined(GL_NO_STDCALL) || defined(UNDER_CE) /* The generated DLLs by MingW with STDCALL are not compatible with the ones done by Microsoft's compilers */# define GLAPIENTRY # else# define GLAPIENTRY __stdcall# endif#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */# define GLAPI extern# define GLAPIENTRY __stdcall#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))# define GLAPI __attribute__((visibility("default")))# define GLAPIENTRY#endif /* WIN32 && !CYGWIN *//* * WINDOWS: Include windows.h here to define APIENTRY. * It is also useful when applications include this file by * including only glut.h, since glut.h depends on windows.h. * Applications needing to include windows.h with parms other * than "WIN32_LEAN_AND_MEAN" may include windows.h before * glut.h or gl.h. */#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)#ifndef WIN32_LEAN_AND_MEAN#define WIN32_LEAN_AND_MEAN 1#endif#include <windows.h>#endifидет проверка системы, компилятора, прочих дефайнов. наверно это и есть совместимость

Ответ от 3 ответа[гуру]
Привет! Вот подборка тем с похожими вопросами и ответами на Ваш вопрос: Совместимость программ
 

Ответить на вопрос:

Имя*

E-mail:*

Текст ответа:*
Проверочный код(введите 22):*