Browse Source

(#5) Don't crash the windows build just because PIPE is not implemented

rexim 4 years ago
parent
commit
f25e8462a2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/pipe.c

+ 4 - 0
examples/pipe.c

@@ -3,7 +3,11 @@
 
 
 int main(void)
 int main(void)
 {
 {
+#if _WIN32
+    WARN("Piping is not implemented on Windows yet");
+#else
     PIPE(IN("./nobuild.c"), CHAIN("cat"));
     PIPE(IN("./nobuild.c"), CHAIN("cat"));
+#endif
 
 
     return 0;
     return 0;
 }
 }