Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- var8x.c.orig 2015-09-04 23:45:27.000000000 -0400
- +++ var8x.c 2015-09-04 23:44:36.000000000 -0400
- @@ -1,6 +1,16 @@
- #include <stdio.h>
- #include <stdlib.h>
- +#ifdef __APPLE__
- +#define STRNICMP2(x,y) strncasecmp(x,y,strlen(x))
- +#define STRNICMP3(x,y,z) strncasecmp(x,y,z)
- +// replace strnicmp invocations with strncasecmp
- +// the magic below let's us have a multiple argument macro overloader
- +// we need this since the code below calls strnicmp() with 2 and 3 args.
- +#define GET_MACRO(_1,_2,_3,NAME,...) NAME
- +#define strnicmp(...) GET_MACRO(__VA_ARGS__, STRNICMP3, STRNICMP2)(__VA_ARGS__)
- +#endif
- +
- enum header_type {
- header_raw,
- header_zshell4,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement