From bd539d4f90496a8d107c41c487ef62221c2d15ae Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 4 Jan 2011 18:44:25 +0000 Subject: Clarify platform ifdef's with indenting and grouping. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- examples/howto-add_fd-and-popen.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'examples') diff --git a/examples/howto-add_fd-and-popen.cxx b/examples/howto-add_fd-and-popen.cxx index ef7e07bba..d649fd456 100644 --- a/examples/howto-add_fd-and-popen.cxx +++ b/examples/howto-add_fd-and-popen.cxx @@ -32,22 +32,22 @@ // http://www.fltk.org/str.php // #include -#ifdef _WIN32 -#define PING_CMD "ping -n 10 localhost" // 'slow command' under windows -#ifdef _MSC_VER -#define popen _popen -#define pclose _pclose -#else /*_MSC_VER*/ -#include // non-MS win32 compilers (untested) -#endif /*_MSC_VER*/ -#else -#include -#define PING_CMD "ping -i 2 -c 10 localhost" // 'slow command' under unix -#endif #include #include #include +#ifdef _WIN32 +# define PING_CMD "ping -n 10 localhost" // 'slow command' under windows +# ifdef _MSC_VER +# define popen _popen +# define pclose _pclose +# else /*_MSC_VER*/ +# include // non-MS win32 compilers (untested) +# endif /*_MSC_VER*/ +#else +# include +# define PING_CMD "ping -i 2 -c 10 localhost" // 'slow command' under unix +#endif // GLOBALS FILE *G_fp = NULL; -- cgit v1.2.3