Add a GPL copyright notice.
[gnulib.git] / lib / strsep.h
index 87351ff..eeb0862 100644 (file)
 #ifndef GNULIB_STRSEP_H_
 #define GNULIB_STRSEP_H_
 
+#if HAVE_STRSEP
+
 /*
- * Get strsep, if available.
+ * Get strsep() declaration.
  */
 #include <string.h>
 
+#else
+
 /* Searches the next delimiter (char listed in DELIM) starting at *STRINGP.
    If one is found, it is overwritten with a NUL, and *STRINGP is advanced
    to point to the next char after it.  Otherwise, *STRINGP is set to NULL.
@@ -40,4 +44,6 @@
 
 extern char *strsep (char **stringp, const char *delim);
 
+#endif
+
 #endif /* GNULIB_STRSEP_H_ */