Public header comment cleanup.
This commit is contained in:
parent
48f4a591de
commit
8d910d7950
@ -68,24 +68,17 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Global definitions
|
* Compiler- and platform-specific preprocessor work
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
/* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */
|
/* If we are we on Windows, we want a single define for it.
|
||||||
|
|
||||||
/* Please report any problems that you find with your compiler, which may
|
|
||||||
* be solved in this section! There are several compilers that I have not
|
|
||||||
* been able to test this file with yet.
|
|
||||||
*
|
|
||||||
* First: If we are we on Windows, we want a single define for it (_WIN32)
|
|
||||||
*/
|
*/
|
||||||
#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__))
|
#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__))
|
||||||
#define _WIN32
|
#define _WIN32
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
/* In order for extension support to be portable, we need to define an
|
/* It is customary to use APIENTRY for OpenGL function pointer declarations on
|
||||||
* OpenGL function call method. We use the keyword APIENTRY, which is
|
* all platforms. Additionally, the Windows OpenGL header needs APIENTRY.
|
||||||
* defined for Win32. (Note: Windows also needs this for <GL/gl.h>)
|
|
||||||
*/
|
*/
|
||||||
#ifndef APIENTRY
|
#ifndef APIENTRY
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -95,25 +88,23 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#endif /* APIENTRY */
|
#endif /* APIENTRY */
|
||||||
|
|
||||||
/* The following three defines are here solely to make some Windows-based
|
/* Some Windows OpenGL headers need this.
|
||||||
* <GL/gl.h> files happy. Theoretically we could include <windows.h>, but
|
|
||||||
* it has the major drawback of severely polluting our namespace.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Under Windows, we need WINGDIAPI defined */
|
|
||||||
#if !defined(WINGDIAPI) && defined(_WIN32)
|
#if !defined(WINGDIAPI) && defined(_WIN32)
|
||||||
#define WINGDIAPI __declspec(dllimport)
|
#define WINGDIAPI __declspec(dllimport)
|
||||||
#define GLFW_WINGDIAPI_DEFINED
|
#define GLFW_WINGDIAPI_DEFINED
|
||||||
#endif /* WINGDIAPI */
|
#endif /* WINGDIAPI */
|
||||||
|
|
||||||
/* Some <GL/glu.h> files also need CALLBACK defined */
|
/* Some Windows GLU headers need this.
|
||||||
|
*/
|
||||||
#if !defined(CALLBACK) && defined(_WIN32)
|
#if !defined(CALLBACK) && defined(_WIN32)
|
||||||
#define CALLBACK __stdcall
|
#define CALLBACK __stdcall
|
||||||
#define GLFW_CALLBACK_DEFINED
|
#define GLFW_CALLBACK_DEFINED
|
||||||
#endif /* CALLBACK */
|
#endif /* CALLBACK */
|
||||||
|
|
||||||
/* Most GL/glu.h variants on Windows need wchar_t
|
/* Most Windows GLU headers need wchar_t.
|
||||||
* OpenGL/gl.h blocks the definition of ptrdiff_t by glext.h on OS X */
|
* The OS X OpenGL header blocks the definition of ptrdiff_t by glext.h.
|
||||||
|
*/
|
||||||
#if !defined(GLFW_INCLUDE_NONE)
|
#if !defined(GLFW_INCLUDE_NONE)
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#endif
|
#endif
|
||||||
@ -194,8 +185,6 @@ extern "C" {
|
|||||||
#define GLFWAPI
|
#define GLFWAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* GLFW API tokens
|
* GLFW API tokens
|
||||||
|
Loading…
Reference in New Issue
Block a user