]> granicus.if.org Git - curl/commitdiff
Force compilation failure in case macros sread() or swrite() are not defined.
authorYang Tse <yangsita@gmail.com>
Mon, 31 Jul 2006 17:12:24 +0000 (17:12 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 31 Jul 2006 17:12:24 +0000 (17:12 +0000)
ares/setup_once.h
lib/setup_once.h

index 065a0888e9c0ac8ded770a4982f9e4e274dbd0bf..0ca6863e206f625a46a75644e4b43069b0e36edd 100644 (file)
 #ifdef DJGPP
 #define sread(x,y,z) (ssize_t)read_s((int)(x), (char *)(y), (int)(z))
 #endif
+#ifndef sread
+  /* */
+  Error Missing_definition_of_macro_sread
+  /* */
+#endif
 #endif /* HAVE_RECV */
 
 #ifdef HAVE_SEND
 #ifdef DJGPP
 #define swrite(x,y,z) (ssize_t)write_s((int)(x), (char *)(y), (int)(z))
 #endif
+#ifndef swrite
+  /* */
+  Error Missing_definition_of_macro_swrite
+  /* */
+#endif
 #endif /* HAVE_SEND */
 
 
index a570a6a4e09a56c7f06d871f9bc10362c99db521..2e3dcc1f4fe5d37306234cacb6793654a31a51e9 100644 (file)
 #ifdef DJGPP
 #define sread(x,y,z) (ssize_t)read_s((int)(x), (char *)(y), (int)(z))
 #endif
+#ifndef sread
+  /* */
+  Error Missing_definition_of_macro_sread
+  /* */
+#endif
 #endif /* HAVE_RECV */
 
 #ifdef HAVE_SEND
 #ifdef DJGPP
 #define swrite(x,y,z) (ssize_t)write_s((int)(x), (char *)(y), (int)(z))
 #endif
+#ifndef swrite
+  /* */
+  Error Missing_definition_of_macro_swrite
+  /* */
+#endif
 #endif /* HAVE_SEND */