Skip to content

Commit c19711d

Browse files
committed
glx_common: Add include guard
1 parent 5b14e52 commit c19711d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/glx_common.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@
3434
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
37+
#ifndef GLX_COMMON_H_0f0455831a23
38+
#define GLX_COMMON_H_0f0455831a23
3739

38-
#ifdef __cplusplus
39-
#include <csdint>
40-
#else
41-
#include <stdint.h>
42-
#endif
40+
#ifdef __cplusplus
41+
#include <csdint>
42+
#else
43+
#include <stdint.h>
44+
#endif
4345

4446
typedef uint32_t glx_opengl_version_t;
4547
#define OPENGL_VERSION_UNSPECIFIED 0u
@@ -49,3 +51,4 @@ void *glx_init(glx_opengl_version_t version_t);
4951
void glx_make_current(void *context);
5052
void glx_validate(void *);
5153
void glx_free(void *);
54+
#endif // GLX_COMMON_H_0f0455831a23

0 commit comments

Comments
 (0)