GNU Radio's TEST Package
gl_platform.h
Go to the documentation of this file.
1 /*
2  * gl_platform.h
3  *
4  * Wrapper to select proper OpenGL headers for various platforms
5  *
6  * Copyright (C) 2013-2021 Sylvain Munaut
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  */
9 
10 /*! \file gl_platform.h
11  * \brief Wrapper to select proper OpenGL headers for various platforms
12  */
13 
14 #if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__))
15 # define _WIN32
16 #endif
17 
18 #if defined(__APPLE__) || defined(MACOSX)
19 # define GL_GLEXT_PROTOTYPES
20 # include <OpenGL/gl.h>
21 #elif defined(_WIN32)
22 # include <GL/glew.h>
23 #else
24 # define GL_GLEXT_PROTOTYPES
25 # include <GL/gl.h>
26 #endif