diff --git a/common/controls.c b/common/controls.c index 77ea85e9..294a2eab 100644 --- a/common/controls.c +++ b/common/controls.c @@ -1,6 +1,5 @@ // 8 june 2019 #include "uipriv.h" -#include "testhooks.h" struct controlType { uint32_t id; diff --git a/common/errors.c b/common/errors.c index c7a8448d..ec0c79d9 100644 --- a/common/errors.c +++ b/common/errors.c @@ -1,6 +1,5 @@ // 12 may 2019 #include "uipriv.h" -#include "testhooks.h" #define internalErrorPrefix "libui internal error" // TODO add debugging advice? diff --git a/common/main.c b/common/main.c index 5aa3b61c..6156e232 100644 --- a/common/main.c +++ b/common/main.c @@ -1,6 +1,5 @@ // 19 april 2019 #include "uipriv.h" -#include "testhooks.h" enum { stateUninitialized, diff --git a/common/uipriv.h b/common/uipriv.h index 7cb3b5a1..77c94801 100644 --- a/common/uipriv.h +++ b/common/uipriv.h @@ -9,6 +9,7 @@ #ifdef uiprivOSHeader #include uiprivOSHeader #endif +#include "testhooks.h" #ifdef __cplusplus extern "C" { diff --git a/test/controls.c b/test/controls.c index 705ad097..541fd39a 100644 --- a/test/controls.c +++ b/test/controls.c @@ -1,6 +1,5 @@ // 8 june 2019 #include "test.h" -#include "../common/testhooks.h" static bool vtableNopInit(uiControl *c, void *implData, void *initData) { diff --git a/test/errors.c b/test/errors.c index 74be6610..71e3a960 100644 --- a/test/errors.c +++ b/test/errors.c @@ -1,7 +1,6 @@ // 28 may 2019 #include "test.h" #include "thread.h" -#include "../common/testhooks.h" // Do not put any test cases in this file; they will not be run. diff --git a/test/initmain.c b/test/initmain.c index cfc3ab8a..066510ad 100644 --- a/test/initmain.c +++ b/test/initmain.c @@ -1,7 +1,6 @@ // 10 april 2019 #include "test.h" #include "thread.h" -#include "../common/testhooks.h" static void testImplInitFailureFull(const char *file, long line) { diff --git a/test/test.h b/test/test.h index a0a1e674..39cfc521 100644 --- a/test/test.h +++ b/test/test.h @@ -11,6 +11,7 @@ #ifdef libuiOSHeader #include libuiOSHeader #endif +#include "../common/testhooks.h" #ifdef __cplusplus extern "C" {