Skip to content

Commit 50c5095

Browse files
authored
Define case insensitive compare for Windows
1 parent 51477b9 commit 50c5095

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

luaApp/src/libs/lasynlib.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
#include "stdio.h"
44
#include <cstring>
55
#include <string>
6-
#include <strings.h>
76
#include <epicsExport.h>
87
#include "luaEpics.h"
98

9+
#if defined(WIN32) || defined(_WIN32)
10+
#include <string.h>
11+
#define strcasecmp(x,y) strcmpi(x,y)
12+
#else
13+
#include <strings.h>
14+
#end
15+
1016
extern "C" {
1117
void luaGenerateDriver(lua_State* state, const char* port_name);
1218
void luaGeneratePort(lua_State* state, const char* port_name, int addr, const char* param);

0 commit comments

Comments
 (0)