Menu

#17 Use strcasecmp on OS X

None
closed-fixed
nobody
None
5
2020-08-02
2020-06-13
No

strcasecmp() exists on OS X, so there's no reason to define our own stricmp().

Arguably, all the APPLE ifdefs can be removed. It's always defined(APPLE) && !defined(OSX). The last OS 9 release was in 1999 and the first OS X release in 2001. Is anyone really using something pre-OS X?

1 Attachments

Discussion

  • Kevin Cozens

    Kevin Cozens - 2020-08-02
    • status: open --> closed-fixed
    • Group: -->
     
  • Kevin Cozens

    Kevin Cozens - 2020-08-02

    r125 | kcozens | 2020-08-02 14:38:06 -0400 (Sun, 02 Aug 2020) | 2 lines

    Don't define APPLE in the makefile. From patch #17 by Jesse Rosenstock.

     

Log in to post a comment.

MongoDB Logo MongoDB