summaryrefslogtreecommitdiff
path: root/jsongen.py.in
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-08-24 19:37:38 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-08-24 19:37:38 -0400
commitb7fd54fa51f69f07b3bf255a4958a0a5b91b0bd9 (patch)
treeb8b7efdcff1977b42832f04bd38d3ce67142b0b4 /jsongen.py.in
parent1a055217df5e641a9094da89c2e0156bcbe62054 (diff)
downloadgpsd-b7fd54fa51f69f07b3bf255a4958a0a5b91b0bd9.tar.gz
ais_json.c no longer includes gpsd.h. May solve a FreeBSD port problem.
Diffstat (limited to 'jsongen.py.in')
-rw-r--r--jsongen.py.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/jsongen.py.in b/jsongen.py.in
index a1bc2e17..4475d283 100644
--- a/jsongen.py.in
+++ b/jsongen.py.in
@@ -810,7 +810,8 @@ if __name__ == '__main__':
print """/*
* This is code generated by jsongen.py. Do not hand-hack it!
*/
-
+ #define NITEMS(x) (int)(sizeof(x)/sizeof(x[0]))
+
/*@ -fullinitblock */
"""