Skip to content

Commit 54d4ba5

Browse files
committed
Ensure __MACH__ (macOS) systems have relevant defines set
1 parent cdba96d commit 54d4ba5

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

mccode/src/port.h.in

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,23 @@
2020
*
2121
*******************************************************************************/
2222

23-
/* Macintosh specific compiler defines. */
23+
/* !!OLD!! Macintosh specific compiler defines. */
2424
#ifdef __dest_os
2525
#if (__dest_os == __mac_os)
2626
#define MAC
2727
#endif
2828
#endif
2929

30+
/* Modern macOS defines */
31+
#ifdef __MACH__
32+
#ifndef HAVE_STRCASECMP
33+
#define HAVE_STRCASECMP HAVE_STRCASECMP
34+
#endif
35+
#ifndef HAVE_STRCASESTR
36+
#define HAVE_STRCASESTR HAVE_STRCASESTR
37+
#endif
38+
#endif
39+
3040
/* File system details. */
3141
#ifndef MC_PATHSEP_C
3242
#ifdef WIN32

0 commit comments

Comments
 (0)