diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-15 14:48:09 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-15 14:48:09 -0800 |
| commit | 573e08a643bac0af91df90582638f1f765dab429 (patch) | |
| tree | ad745bb81608147304b1bb92aeb682353feedcbd /src/platform/windows | |
| parent | 694ad48a9c3b4c3d3a91d323a1601c2c4ebacba9 (diff) | |
| download | nng-573e08a643bac0af91df90582638f1f765dab429.tar.gz nng-573e08a643bac0af91df90582638f1f765dab429.tar.bz2 nng-573e08a643bac0af91df90582638f1f765dab429.zip | |
Compile static *and* shared libraries.
Test code needs to use the static libraries so that they can get access
to the entire set of symbols, including private ones that are not exported.
Diffstat (limited to 'src/platform/windows')
| -rw-r--r-- | src/platform/windows/win_clock.c | 5 | ||||
| -rw-r--r-- | src/platform/windows/win_debug.c | 5 | ||||
| -rw-r--r-- | src/platform/windows/win_ipc.c | 5 | ||||
| -rw-r--r-- | src/platform/windows/win_net.c | 5 | ||||
| -rw-r--r-- | src/platform/windows/win_rand.c | 5 | ||||
| -rw-r--r-- | src/platform/windows/win_thread.c | 5 |
6 files changed, 30 insertions, 0 deletions
diff --git a/src/platform/windows/win_clock.c b/src/platform/windows/win_clock.c index bdb2f550..9a2546ae 100644 --- a/src/platform/windows/win_clock.c +++ b/src/platform/windows/win_clock.c @@ -26,4 +26,9 @@ nni_plat_usleep(nni_duration usec) } +#else + +// Suppress empty symbols warnings in ranlib. +int nni_win_clock_not_used = 0; + #endif // PLATFORM_WINDOWS diff --git a/src/platform/windows/win_debug.c b/src/platform/windows/win_debug.c index 00fd6493..cf8ad9eb 100644 --- a/src/platform/windows/win_debug.c +++ b/src/platform/windows/win_debug.c @@ -78,4 +78,9 @@ nni_plat_errno(int errnum) } +#else + +// Suppress empty symbols warnings in ranlib. +int nni_win_debug_not_used = 0; + #endif // PLATFORM_WINDOWS diff --git a/src/platform/windows/win_ipc.c b/src/platform/windows/win_ipc.c index feef6942..42590ee9 100644 --- a/src/platform/windows/win_ipc.c +++ b/src/platform/windows/win_ipc.c @@ -345,4 +345,9 @@ nni_plat_ipc_connect(nni_plat_ipcsock *s, const char *path) } +#else + +// Suppress empty symbols warnings in ranlib. +int nni_win_ipc_not_used = 0; + #endif // PLATFORM_WINDOWS diff --git a/src/platform/windows/win_net.c b/src/platform/windows/win_net.c index 65f986bd..48be1781 100644 --- a/src/platform/windows/win_net.c +++ b/src/platform/windows/win_net.c @@ -557,4 +557,9 @@ nni_plat_tcp_accept(nni_plat_tcpsock *s, nni_plat_tcpsock *server) } +#else + +// Suppress empty symbols warnings in ranlib. +int nni_win_net_not_used = 0; + #endif // PLATFORM_WINDOWS diff --git a/src/platform/windows/win_rand.c b/src/platform/windows/win_rand.c index 8bca5927..a1e381d8 100644 --- a/src/platform/windows/win_rand.c +++ b/src/platform/windows/win_rand.c @@ -30,4 +30,9 @@ nni_plat_seed_prng(void *buf, size_t bufsz) } +#else + +// Suppress empty symbols warnings in ranlib. +int nni_win_rand_not_used = 0; + #endif // PLATFORM_WINDOWS diff --git a/src/platform/windows/win_thread.c b/src/platform/windows/win_thread.c index 4d47f18e..2dcb62fe 100644 --- a/src/platform/windows/win_thread.c +++ b/src/platform/windows/win_thread.c @@ -196,4 +196,9 @@ nni_plat_fini(void) } +#else + +// Suppress empty symbols warnings in ranlib. +int nni_win_thread_not_used = 0; + #endif |
