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/core/platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/platform.h') diff --git a/src/core/platform.h b/src/core/platform.h index f6f0b974..6e049bb3 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -345,9 +345,9 @@ extern void nni_plat_pipe_close(int, int); // Actual platforms we support. This is included up front so that we can // get the specific types that are supplied by the platform. -#if defined(PLATFORM_POSIX) +#if defined(NNG_PLATFORM_POSIX) #include "platform/posix/posix_impl.h" -#elif defined(PLATFORM_WINDOWS) +#elif defined(NNG_PLATFORM_WINDOWS) #include "platform/windows/win_impl.h" #else #error "unknown platform" -- cgit v1.2.3-70-g09d2