search for: __darwin_alias

Displaying 2 results from an estimated 2 matches for "__darwin_alias".

2007 Jan 08
2
can't compile on OSX: unsetenv header issues
...s some sort of configure magic that needs to happen to get the POSIX compatible unsetenv on OSX. Here's what I think is the relevant bit from stdlib.h, but I'm hoping someone with more OSX experience will recognize what needs to be done. #if __DARWIN_UNIX03 int unsetenv(const char *) __DARWIN_ALIAS(unsetenv); #else /* !__DARWIN_UNIX03 */ void unsetenv(const char *); #endif /* __DARWIN_UNIX03 */ + seth
2019 Jan 22
2
Newbie - SNMP-UPS Driver Issue
...tion static inline int setenv(const char *name, const char *value, int overwrite) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:237:6: note: previous declaration is here int setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); ^ /Users/deantrasente/Documents/GitHub/nut/drivers/snmp-ups.c:783:10: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] for(cp = pdu->var...