]> code.citadel.org Git - citadel.git/blobdiff - citadel/support.c
- port to Cygwin (DLL support, etc.)
[citadel.git] / citadel / support.c
index 99284f6c739195e47a630e194edce4d10f86809a..3262890b2cabec271475df30acbd6b45a5c5b1e5 100644 (file)
@@ -5,6 +5,10 @@
  *
  */
 
+#ifdef DLL_EXPORT
+#define IN_LIBCIT
+#endif
+
 #include "sysdep.h"
 #include <stdlib.h>
 #include <unistd.h>
@@ -23,6 +27,7 @@ void strproc(char *string)
 {
        int a;
 
+       if (string == NULL) return;
        if (strlen(string)==0) return;
 
        /* Convert non-printable characters to blanks */