mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01:00
Move library tree where it belongs
This commit is contained in:
21
lib-src/libogg/macos/compat/strdup.c
Executable file
21
lib-src/libogg/macos/compat/strdup.c
Executable 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
lib-src/libogg/macos/compat/sys/types.h
Executable file
1
lib-src/libogg/macos/compat/sys/types.h
Executable file
@@ -0,0 +1 @@
|
||||
#ifndef __SYS_TYPES_H__
|
||||
Reference in New Issue
Block a user