[cig-commits] commit: Adding stddef.h include as this is where 'offsetof' is defined.

Mercurial hg at geodynamics.org
Mon Feb 1 15:31:22 PST 2010


changeset:   353:9764d5156201
branch:      pcu_rejig
user:        JericoRevote
date:        Mon Dec 07 11:53:49 2009 +1100
files:       Utils/src/BuoyancyForceTerm.c
description:
Adding stddef.h include as this is where 'offsetof' is defined.
(Needed for building with ASCII.)


diff -r 4e054d7a38e1 -r 9764d5156201 Utils/src/BuoyancyForceTerm.c
--- a/Utils/src/BuoyancyForceTerm.c	Fri Dec 04 18:33:07 2009 +1100
+++ b/Utils/src/BuoyancyForceTerm.c	Mon Dec 07 11:53:49 2009 +1100
@@ -57,6 +57,7 @@
 
 #include <assert.h>
 #include <string.h>
+#include <stddef.h>
 
 /* Textual name of this class */
 const Type BuoyancyForceTerm_Type = "BuoyancyForceTerm";



More information about the CIG-COMMITS mailing list