Built SDL2_image and _mixer static
This commit is contained in:
21
libsdl2_mixer/external/libvorbis-1.3.5/macos/compat/strdup.c
vendored
Normal file
21
libsdl2_mixer/external/libvorbis-1.3.5/macos/compat/strdup.c
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
#include <ogg/os_types.h>
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
char *strdup(const char *inStr)
|
||||
{
|
||||
char *outStr = NULL;
|
||||
|
||||
if (inStr == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
outStr = _ogg_malloc(strlen(inStr) + 1);
|
||||
|
||||
if (outStr != NULL) {
|
||||
strcpy(outStr, inStr);
|
||||
}
|
||||
|
||||
return outStr;
|
||||
}
|
1
libsdl2_mixer/external/libvorbis-1.3.5/macos/compat/sys/types.h
vendored
Normal file
1
libsdl2_mixer/external/libvorbis-1.3.5/macos/compat/sys/types.h
vendored
Normal file
@ -0,0 +1 @@
|
||||
#ifndef __SYS_TYPES_H__
|
Reference in New Issue
Block a user