mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
move include/QF/string.h to include/qstring.h and include it automaticly if
needed in compat.h
This commit is contained in:
parent
b3843f7f5b
commit
218554d60a
5 changed files with 8 additions and 3 deletions
|
@ -4,7 +4,7 @@ SUBDIRS = QF
|
|||
EXTRA_DIST = asm_i386.h adivtab.h anorm_dots.h anorms.h asm_draw.h block16.h \
|
||||
block8.h buildnum.h compat.h context_x11.h d_iface.h d_ifacea.h \
|
||||
d_local.h dga_check.h fbset.h gl_warp_sin.h \
|
||||
in_win.h logos.h menu.h old_keys.h quakeasm.h r_cvar.h \
|
||||
in_win.h logos.h menu.h old_keys.h qstring.h quakeasm.h r_cvar.h \
|
||||
r_dynamic.h r_local.h r_shared.h sbar.h stamp-h.in varrays.h \
|
||||
vgamodes.h view.h vregset.h winquake.h world.h \
|
||||
\
|
||||
|
|
|
@ -7,5 +7,5 @@ include_HEADERS = bspfile.h cdaudio.h checksum.h clip_hull.h cmd.h \
|
|||
mathlib.h mdfour.h model.h modelgen.h msg.h pcx.h plugin.h \
|
||||
pr_comp.h pr_debug.h progs.h qargs.h qdefs.h qendian.h qfplist.h \
|
||||
qtypes.h render.h screen.h sizebuf.h skin.h sound.h spritegn.h \
|
||||
string.h sys.h teamplay.h texture.h tga.h uint32.h va.h \
|
||||
sys.h teamplay.h texture.h tga.h uint32.h va.h \
|
||||
ver_check.h vfile.h vfs.h vid.h wad.h zone.h
|
||||
|
|
|
@ -92,10 +92,16 @@ extern int vsnprintf(char *s, size_t maxlen, const char *format, va_list arg);
|
|||
// FIXME: glibc has strcasestr, but only declares it if __USE_GNU is defined
|
||||
#if !defined(strcasestr)
|
||||
# define strcasestr Q_strcasestr
|
||||
# define need_qstring_h
|
||||
#endif
|
||||
// FIXME: same as above
|
||||
#if !defined(strnlen)
|
||||
# define strnlen Q_strnlen
|
||||
# define need_qstring_h
|
||||
#endif
|
||||
|
||||
#ifdef need_qstring_h
|
||||
# include "qstring.h"
|
||||
#endif
|
||||
|
||||
#undef field_offset
|
||||
|
|
|
@ -34,7 +34,6 @@ static const char rcsid[] =
|
|||
#include <string.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include "string.h"
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue