Skip to content

Commit

Permalink
Correctly build on Windows without strcasecmp
Browse files Browse the repository at this point in the history
Issue #15

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 14, 2017
1 parent de84d83 commit 497daff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
/* PRINTF_STYLE definition */
#include <gammu-misc.h>

#include <gammu-config.h>

#ifndef HAVE_STRCASECMP
#ifdef HAVE_STRICMP
#define strcasecmp _stricmp
#endif
#endif

/**
* Copies at most n chars from src to dest, dest will be \0 terminated.
*/
Expand Down

0 comments on commit 497daff

Please sign in to comment.