diff --git a/ChangeLog b/ChangeLog index 9e5f80b..2df4d5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2016-12-18 Ross Johnson + + * implement.h (PTW32_TEST_SNEAK_PEEK): Defined in tests/test.h + to control what some tests see when sneaking a peek inside this + header. + +2016-12-17 Ross Johnson + + * _ptw32.h: MINGW(all) include stdint.h to define all specific + size integers (int64_t etc). + +2016-12-17 Kyle Schwarz + + * _ptw32.h: MINGW6464 define pid_t as __int64. + 2016-04-01 Ross Johnson * _ptw32.h: Move more header stuff into here. diff --git a/implement.h b/implement.h index c203cfa..12184c1 100644 --- a/implement.h +++ b/implement.h @@ -137,9 +137,9 @@ static void ptw32_set_errno(int err) { errno = err; SetLastError(err); } #endif /* - * Don't allow the linker to optimize away autostatic.obj in static builds. + * Don't allow the linker to optimize away dll.obj (dll.o) in static builds. */ -#if defined(PTW32_STATIC_LIB) && defined(PTW32_BUILD) +#if defined(PTW32_STATIC_LIB) && defined(PTW32_BUILD) && !defined(PTW32_TEST_SNEAK_PEEK) void ptw32_autostatic_anchor(void); # if defined(__GNUC__) __attribute__((unused, used)) diff --git a/tests/ChangeLog b/tests/ChangeLog index 3427291..6bbe161 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +2016-124-18 Ross Johnson + + * test.c (PTW32_TEST_SNEAK_PEEK): #define this to prevent some + tests from failing (specifically "make GCX-small-static") with + undefined ptw32_autostatic_anchor. Checked in ../implament.h. + 2016-04-30 Ross Johnson * semaphore4t.c: No longer need to include ptw32_timespec.c and the diff --git a/tests/test.h b/tests/test.h index a909fda..bced8fb 100644 --- a/tests/test.h +++ b/tests/test.h @@ -39,6 +39,13 @@ #ifndef _PTHREAD_TEST_H_ #define _PTHREAD_TEST_H_ +/* + * Some tests sneak a peek at ../implement.h + * This is used inside ../implement.h to control + * what these test apps see and don't see. + */ +#define PTW32_TEST_SNEAK_PEEK + #include "pthread.h" #include "sched.h" #include "semaphore.h"