use #if instead of #ifdef
[catagits/fcgi2.git] / examples / echo.c
index 6ef05ed..6e71b1f 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * echo.c --
  *
  *     Produce a page containing all FastCGI inputs
  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  *
  */
-
 #ifndef lint
-static const char rcsid[] = "$Id: echo.c,v 1.3 1999/07/26 05:32:59 roberts Exp $";
+static const char rcsid[] = "$Id: echo.c,v 1.5 1999/07/28 00:29:37 roberts Exp $";
 #endif /* not lint */
 
-#if defined HAVE_UNISTD_H || __linux__
-#include <unistd.h>
-#endif
+#include "fcgi_config.h"
 
-#include "fcgi_stdio.h"
 #include <stdlib.h>
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #ifdef _WIN32
 #include <process.h>
 #else
 extern char **environ;
 #endif
 
+#include "fcgi_stdio.h"
+
+
 static void PrintEnv(char *label, char **envp)
 {
     printf("%s:<br>\n<pre>\n", label);