← Back to team overview

kicad-developers team mailing list archive

[PATCH 4/3] Add <cstddef> include for offsetof

 

This macro is defined in stddef.h, so <cstddef> is needed.
---
 include/gal/opengl/vertex_common.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/gal/opengl/vertex_common.h b/include/gal/opengl/vertex_common.h
index 9ec8d9b..0d8eb9d 100644
--- a/include/gal/opengl/vertex_common.h
+++ b/include/gal/opengl/vertex_common.h
@@ -32,6 +32,8 @@
 
 #include <GL/glew.h>
 
+#include <cstddef>
+
 namespace KIGFX
 {
 // Possible types of shaders

Follow ups

References