* [Bug 2864] 4.2.8p3 fails to compile on Windows. Juergen Perlinger
* [Bug 2867] ntpd with autokey active crashed by 'ntpq -crv'. J.Perlinger
* libntp/emalloc.c: Remove explicit include of stdint.h. Harlan Stenn.
+* Put Unity CPPFLAGS items in unity_config.h. Harlan Stenn.
---
(4.2.8p3) 2015/06/29 Released by Harlan Stenn <stenn@ntp.org>
tests_SOURCES = \
$(base_SOURCES) \
+ g_fileHandlingTest.h \
g_networking.cpp \
g_packetHandling.cpp \
g_packetProcessing.cpp \
+ g_sntptest.h \
$(NULL)
# HMS: this test was for the 4.2.6 sntp code.
noinst_HEADERS = \
fileHandlingTest.h \
sntptest.h \
- g_fileHandlingTest.h \
- g_sntptest.h \
$(NULL)
dist_check_SCRIPTS = tests-runner
AM_CPPFLAGS += $(CPPFLAGS_LIBEVENT)
AM_CPPFLAGS += $(GTEST_CPPFLAGS)
AM_CPPFLAGS += $(CPPFLAGS_NTP)
+AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
+AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_LDFLAGS = $(LDFLAGS_NTP)
noinst_LIBRARIES = libunity.a
libunity_a_CFLAGS = \
- -DUNITY_INCLUDE_DOUBLE \
+ -DUNITY_INCLUDE_CONFIG_H \
$(NULL)
libunity_a_SOURCES = \
--- /dev/null
+/* unity_config.h */
+
+#ifndef UNITY_CONFIG_H
+#define UNITY_CONFIG_H
+
+#define UNITY_INCLUDE_DOUBLE
+
+#endif /* UNITY_CONFIG_H */
AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_CPPFLAGS += -I$(top_srcdir)/include
AM_CPPFLAGS += $(CPPFLAGS_NTP)
+AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
+AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_LDFLAGS = $(LDFLAGS_NTP)
AM_CPPFLAGS += -I$(top_srcdir)/sntp
AM_CPPFLAGS += $(GTEST_CPPFLAGS)
AM_CPPFLAGS += $(CPPFLAGS_NTP)
+AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
+AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_LDFLAGS = $(LDFLAGS_NTP)
test_buftvtots_CFLAGS = \
-I$(top_srcdir)/sntp/unity \
- -DUNITY_INCLUDE_DOUBLE \
$(NULL)
$(srcdir)/run-buftvtots.c: $(srcdir)/buftvtots.c $(std_unity_list)
test_lfpfunc_CFLAGS = \
-I$(top_srcdir)/sntp/unity \
- -DUNITY_INCLUDE_DOUBLE \
$(NULL)
test_lfpfunc_LDADD = \
test_sfptostr_CFLAGS = \
-I$(top_srcdir)/sntp/unity \
- -DUNITY_INCLUDE_DOUBLE \
$(NULL)
test_sfptostr_LDADD = \
test_tvtots_CFLAGS = \
-I$(top_srcdir)/sntp/unity \
- -DUNITY_INCLUDE_DOUBLE \
$(NULL)
test_tvtots_LDADD = \
AM_CPPFLAGS += -I$(top_srcdir)/ntpd
AM_CPPFLAGS += $(GTEST_CPPFLAGS)
AM_CPPFLAGS += $(CPPFLAGS_NTP)
+AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
+AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_LDFLAGS = $(LDFLAGS_NTP)
AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_CPPFLAGS += -I$(top_srcdir)/include
AM_CPPFLAGS += $(CPPFLAGS_NTP)
+AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
+AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_LDFLAGS = $(LDFLAGS_NTP)
main()
{
+ l_fp l;
+ int rc;
rtol(0xfe800000);
rtol(0xfe800001);
rtoltor(0xfe7ffffe);
rtoltor(0xfe7fffff);
+ rc = atolfp("-.932087", &l);
+ ltor(l);
+ rtol(0xfec458b0);
+ printf("%x -> %d.%d.%d.%d\n",
+ 0xfec458b0,
+ 0xfe,
+ 0xc4,
+ 0x58,
+ 0xb0);
+
return 0;
}
AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_CPPFLAGS += -I$(top_srcdir)/include
AM_CPPFLAGS += $(CPPFLAGS_NTP)
+AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
+AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
AM_LDFLAGS = $(LDFLAGS_NTP)