Imported Upstream version 7.0
[platform/upstream/dos2unix.git] / unix2dos.h
index db31730..3f54043 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (C) 2009-2011 Erwin Waterlander
+ *  Copyright (C) 2009-2012 Erwin Waterlander
  *  Copyright (C) 1994-1995 Benjamin Lin.
  *  All rights reserved.
  *
 #ifndef __UNIX2DOS_H
 #define __UNIX2DOS_H
 
-#ifdef __GNUC__
-#ifndef strcmpi
-#  define strcmpi(s1, s2) strcasecmp(s1, s2)
-#endif
-#endif
-
+#ifdef __UNIX2DOS_C
 /* ASCII mode. No conversion. */
 
 static int U2DAsciiTable[256] =
@@ -218,5 +213,11 @@ static int U2DIso1252Table[256] =
   '\xe0', '\xe1', '\xe2', '\xe3', '\xe4', '\xe5', '\xe6', '\xe7', '\xe8', '\xe9', '\xea', '\xeb', '\xec', '\xed', '\xee', '\xef',
   '\xf0', '\xf1', '\xf2', '\xf3', '\xf4', '\xf5', '\xf6', '\xf7', '\xf8', '\xf9', '\xfa', '\xfb', '\xfc', '\xfd', '\xfe', '\xff',
 };
+#endif
+
+#ifdef D2U_UNICODE
+int ConvertUnixToDosW(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, const char *progname);
+#endif
+int ConvertUnixToDos(FILE* ipInF, FILE* ipOutF, CFlag *ipFlag, const char *progname);
 
 #endif