aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-02 23:45:49 +0000
committerDavid Robillard <d@drobilla.net>2011-03-02 23:45:49 +0000
commit48454fa922b8836dbe4497eb7a6343e2825e7196 (patch)
tree83e0dd966244d4bd5414c361a2de15a5e77791ed
parent7c4b1a7db1c71b284474d480cce4749b8332f887 (diff)
downloadserd-48454fa922b8836dbe4497eb7a6343e2825e7196.tar.gz
serd-48454fa922b8836dbe4497eb7a6343e2825e7196.tar.bz2
serd-48454fa922b8836dbe4497eb7a6343e2825e7196.zip
Fix #include in amalgamation to refer to amalgamation header instead of system header.
git-svn-id: http://svn.drobilla.net/serd/trunk@116 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index 3c6feb35..7e8e0cd4 100644
--- a/wscript
+++ b/wscript
@@ -130,7 +130,10 @@ def amalgamate(ctx):
serd_internal_h = open('src/serd_internal.h')
for l in serd_internal_h:
- amalgamation.write(l)
+ if l == '#include "serd/serd.h"\n':
+ amalgamation.write('#include "serd-%s.h"\n' % SERD_VERSION)
+ else:
+ amalgamation.write(l)
serd_internal_h.close()
for f in 'env.c node.c reader.c uri.c writer.c'.split():