mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-05 03:11:23 +00:00
[libvpx] Update to v1.12.0
This commit is contained in:
+5
-2
@@ -16,8 +16,10 @@
|
||||
#include "vpx/vpx_integer.h"
|
||||
#include "vpx_ports/msvc.h"
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__
|
||||
extern void die(const char *fmt, ...) __attribute__((noreturn));
|
||||
#if defined(__GNUC__)
|
||||
__attribute__((noreturn)) extern void die(const char *fmt, ...);
|
||||
#elif defined(_MSC_VER)
|
||||
__declspec(noreturn) extern void die(const char *fmt, ...);
|
||||
#else
|
||||
extern void die(const char *fmt, ...);
|
||||
#endif
|
||||
@@ -81,6 +83,7 @@ const char *arg_next(struct arg *arg) {
|
||||
|
||||
char **argv_dup(int argc, const char **argv) {
|
||||
char **new_argv = malloc((argc + 1) * sizeof(*argv));
|
||||
if (!new_argv) return NULL;
|
||||
|
||||
memcpy(new_argv, argv, argc * sizeof(*argv));
|
||||
new_argv[argc] = NULL;
|
||||
|
||||
Reference in New Issue
Block a user