mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
Merge remote-tracking branch 'upstream/master' into next
This commit is contained in:
commit
b5b7b7c1e3
3 changed files with 7 additions and 3 deletions
|
@ -113,6 +113,11 @@ int endswith (const char *base, const char *tag);
|
||||||
#define HAVE_DOSSTR_FUNCS
|
#define HAVE_DOSSTR_FUNCS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// glibc 2.38: added strlcpy and strlcat to _DEFAULT_SOURCE
|
||||||
|
#if defined (__APPLE__) || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 38)
|
||||||
|
#define HAVE_STRLCPY
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_DOSSTR_FUNCS
|
#ifndef HAVE_DOSSTR_FUNCS
|
||||||
int strupr(char *n); // from dosstr.c
|
int strupr(char *n); // from dosstr.c
|
||||||
int strlwr(char *n); // from dosstr.c
|
int strlwr(char *n); // from dosstr.c
|
||||||
|
@ -120,7 +125,7 @@ int strlwr(char *n); // from dosstr.c
|
||||||
|
|
||||||
#include <stddef.h> // for size_t
|
#include <stddef.h> // for size_t
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#ifndef HAVE_STRLCPY
|
||||||
size_t strlcat(char *dst, const char *src, size_t siz);
|
size_t strlcat(char *dst, const char *src, size_t siz);
|
||||||
size_t strlcpy(char *dst, const char *src, size_t siz);
|
size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1593,7 +1593,6 @@ boolean VID_CheckRenderer(void)
|
||||||
else if (vid.glstate == VID_GL_LIBRARY_ERROR)
|
else if (vid.glstate == VID_GL_LIBRARY_ERROR)
|
||||||
rendererchanged = false;
|
rendererchanged = false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!contextcreated)
|
if (!contextcreated)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "doomdef.h"
|
#include "doomdef.h"
|
||||||
|
|
||||||
#if !defined (__APPLE__)
|
#ifndef HAVE_STRLCPY
|
||||||
|
|
||||||
// Like the OpenBSD version, but it doesn't check for src not being a valid
|
// Like the OpenBSD version, but it doesn't check for src not being a valid
|
||||||
// C string.
|
// C string.
|
||||||
|
|
Loading…
Reference in a new issue