[Mobies-commit] [commit] r3641 - UDM/trunk/src/UdmDom
endre at redhat1.isis.vanderbilt.edu
endre at redhat1.isis.vanderbilt.edu
Fri Feb 18 14:01:50 CST 2011
Author: endre
Date: Fri Feb 18 14:01:50 2011
New Revision: 3641
Log:
On non win32 define strnicmp as strncasecmp.
Modified:
UDM/trunk/src/UdmDom/UdmDom.cpp
Modified: UDM/trunk/src/UdmDom/UdmDom.cpp
==============================================================================
--- UDM/trunk/src/UdmDom/UdmDom.cpp Fri Feb 18 13:59:41 2011 (r3640)
+++ UDM/trunk/src/UdmDom/UdmDom.cpp Fri Feb 18 14:01:50 2011 (r3641)
@@ -180,6 +180,13 @@
#endif
+// Use POSIX strncasecamp on other platforms
+#ifndef WIN32
+#include <strings.h>
+
+#define strnicmp(a, b, n) strncasecmp(a,b,n)
+#endif
+
#include <cstdio>
#include <cstdlib>
#include <fstream>
More information about the Mobies-commit
mailing list