From a6779486c55d3d61637edec135b897a724cb9d2d Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Mon, 21 May 2018 09:36:39 +0200 Subject: fix the compilation when the byte order cannot be detected statically --- src/runtime/c/sg/sqlite3Btree.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/c') diff --git a/src/runtime/c/sg/sqlite3Btree.c b/src/runtime/c/sg/sqlite3Btree.c index a75cfd62b..ee6bd206a 100644 --- a/src/runtime/c/sg/sqlite3Btree.c +++ b/src/runtime/c/sg/sqlite3Btree.c @@ -4918,6 +4918,7 @@ SQLITE_PRIVATE int sqlite3PendingByte; # define SQLITE_UTF16NATIVE SQLITE_UTF16BE #endif #if !defined(SQLITE_BYTEORDER) +const int sqlite3one = 1; # define SQLITE_BYTEORDER 0 /* 0 means "unknown at compile-time" */ # define SQLITE_BIGENDIAN (*(char *)(&sqlite3one)==0) # define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1) -- cgit v1.2.3 From 9d39648dfba3b2565e89b2de3a8a6db90ade6aaf Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Mon, 21 May 2018 16:03:30 +0200 Subject: fixed typo which broke the compilation on Windows --- src/runtime/c/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/runtime/c') diff --git a/src/runtime/c/Makefile.am b/src/runtime/c/Makefile.am index edc4f88b2..8f9c8bf56 100644 --- a/src/runtime/c/Makefile.am +++ b/src/runtime/c/Makefile.am @@ -87,13 +87,14 @@ libpgf_la_SOURCES = \ pgf/graphviz.c \ pgf/aligner.c \ pgf/pgf.c \ - pgf/pgf.h \ -libpgf_la_LDFLAGS = "-no-undefined" + pgf/pgf.h +libpgf_la_LDFLAGS = -no-undefined libpgf_la_LIBADD = libgu.la libsg_la_SOURCES = \ sg/sqlite3Btree.c \ sg/sg.c +libsg_la_LDFLAGS = -no-undefined libsg_la_LIBADD = libgu.la libpgf.la bin_PROGRAMS = -- cgit v1.2.3