summaryrefslogtreecommitdiff
path: root/FL/gl2opengl.h
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-04-13 20:14:36 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-04-13 20:14:36 +0200
commit7b2c770ef7385276bf4884ffe308a6c79a8046ef (patch)
tree8807828cb2a1f6fdeee5ac86032918b5055c146f /FL/gl2opengl.h
parent9d380f24bd4b13731c702047a2f212a287c993db (diff)
Fix trailing comma in enums of public headers
Compiler warning: comma at end of enumerator list [-Wpedantic] Note 1: I decided to fix these warnings although trailing commas in enums are allowed at least since C++11. Note 2: I fixed only public headers because these headers may be compiled in user code. To do: check internal headers.
Diffstat (limited to 'FL/gl2opengl.h')
-rw-r--r--FL/gl2opengl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/FL/gl2opengl.h b/FL/gl2opengl.h
index 5ba1fef20..a22fd3df3 100644
--- a/FL/gl2opengl.h
+++ b/FL/gl2opengl.h
@@ -6,6 +6,9 @@
*/
+#ifndef _FL_gl2opengl_h_
+#define _FL_gl2opengl_h_
+
#include <FL/gl.h>
#include "gl_draw.H"
@@ -33,3 +36,5 @@ inline void recti(int x,int y,int r,int t) {gl_rect(x,y,r-x,t-y);}
inline void rectfi(int x,int y,int r,int t) {glRecti(x,y,r+1,t+1);}
inline void rects(int x,int y,int r,int t) {gl_rect(x,y,r-x,t-y);}
inline void rectfs(int x,int y,int r,int t) {glRects(x,y,r+1,t+1);}
+
+#endif /* _FL_gl2opengl_h_ */