From 6305e16ab64e42fd9791819d416a6e3534439b0b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 20 Aug 2017 10:31:09 -0700 Subject: Conditional platform inclusion cleanups. We only compile files that are appropriate for the platform. (We still have guards in place, to allow for a future single .C file to be built from all the sources.) We also remove the subsystem defines; if a new platform needs to deviate from POSIX in ways beyond what we intended here, then that platform should just copy those parts into a new platform directory, rather than cross including portions from POSIX. --- src/platform/posix/posix_pipe.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/platform/posix/posix_pipe.c') diff --git a/src/platform/posix/posix_pipe.c b/src/platform/posix/posix_pipe.c index 314e2f5e..bc42abec 100644 --- a/src/platform/posix/posix_pipe.c +++ b/src/platform/posix/posix_pipe.c @@ -10,7 +10,7 @@ // POSIX pipes. #include "core/nng_impl.h" -#ifdef PLATFORM_POSIX_PIPE +#ifdef NNG_PLATFORM_POSIX #include @@ -124,9 +124,4 @@ nni_plat_pipe_close(int wfd, int rfd) #endif // NNG_USE_EVENTFD -#else - -// Suppress empty symbols warnings in ranlib. -int nni_posix_pipe_not_used = 0; - -#endif // PLATFORM_POSIX_PIPE +#endif // NNG_PLATFORM_POSIX -- cgit v1.2.3-70-g09d2