Skip to content

Commit

Permalink
Clarify platform ifdef's with indenting and grouping.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
erco77 committed Jan 4, 2011
1 parent cf95f8d commit bd539d4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions examples/howto-add_fd-and-popen.cxx
Expand Up @@ -32,22 +32,22 @@
// http://www.fltk.org/str.php
//
#include <stdio.h>
#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 <unistd.h> // non-MS win32 compilers (untested)
#endif /*_MSC_VER*/
#else
#include <unistd.h>
#define PING_CMD "ping -i 2 -c 10 localhost" // 'slow command' under unix
#endif
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Multi_Browser.H>

#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 <unistd.h> // non-MS win32 compilers (untested)
# endif /*_MSC_VER*/
#else
# include <unistd.h>
# define PING_CMD "ping -i 2 -c 10 localhost" // 'slow command' under unix
#endif

// GLOBALS
FILE *G_fp = NULL;
Expand Down

0 comments on commit bd539d4

Please sign in to comment.