Skip to content

Commit 9b1d2c0

Browse files
committed
Fix first set of errors
1 parent 2d59b0a commit 9b1d2c0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/generic/endian.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef ENDIAN_H
1010
#define ENDIAN_H
1111

12-
#if _MSC_VER
12+
#if _WIN32
1313
#include <stdlib.h>
1414

1515
#define LITTLE_ENDIAN 1234

src/zone.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ typedef zone_parser_t parser_t; // convenience
2828
#include "isadetection.h"
2929

3030
#if _WIN32
31-
#define strcasecmp(s1, s2) _stricmp(s1, s2)
32-
#define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n)
31+
# if _MSC_VER
32+
# define strcasecmp(s1, s2) _stricmp(s1, s2)
33+
# define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n)
34+
# endif
3335

3436
static char *strndup(const char *s, size_t n)
3537
{

0 commit comments

Comments
 (0)