FLTK logo

[master] ef41409 - Add guard against multiple inclusion of header file.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] ef41409 - Add guard against multiple inclusion of header file. "ManoloFLTK" Mar 27, 2021  
 
commit ef414097598e2afbfaf69eed46477da80400c1a0
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Mar 27 19:05:15 2021 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Mar 27 19:05:29 2021 +0100

    Add guard against multiple inclusion of header file.

 src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H | 5 +++++
 1 file changed, 5 insertions(+)

diff --git src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H
index a0ded9b..09a5d67 100644
--- src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H
+++ src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H
@@ -18,6 +18,9 @@
     Declaration of class Fl_Cairo_Graphics_Driver.
 */
 
+#ifndef FL_CAIRO_GRAPHICS_DRIVER_H
+# define FL_CAIRO_GRAPHICS_DRIVER_H
+
 #include <FL/Fl_Graphics_Driver.H>
 
 typedef struct _cairo cairo_t;
@@ -137,3 +140,5 @@ public:
   void ps_translate(int, int);
   void ps_untranslate();
 };
+
+#endif // FL_CAIRO_GRAPHICS_DRIVER_H
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.