From: rpolzer Date: Fri, 7 Nov 2008 15:54:07 +0000 (+0000) Subject: more path lengths X-Git-Tag: svn-r421~294 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c39d65004621d2cd9909d9b6e6c73ff68861c205;p=xonotic%2Fnetradiant.git more path lengths git-svn-id: svn://svn.icculus.org/netradiant/trunk@126 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/contrib/camera/camera.h b/contrib/camera/camera.h index 4416f796..4c7f6cb2 100644 --- a/contrib/camera/camera.h +++ b/contrib/camera/camera.h @@ -79,7 +79,9 @@ extern idCameraDef camera[MAX_CAMERAS]; extern "C" qboolean loadCamera(int camNum, const char *name); +#ifndef PATH_MAX #define PATH_MAX 260 +#endif // // CCamera diff --git a/contrib/prtview/portals.h b/contrib/prtview/portals.h index 06f4af4b..c6bd678d 100644 --- a/contrib/prtview/portals.h +++ b/contrib/prtview/portals.h @@ -52,7 +52,11 @@ public: bool Build(char *def); }; +#ifdef PATH_MAX +#define PRTVIEW_PATH_MAX PATH_MAX +#else #define PRTVIEW_PATH_MAX 260 +#endif typedef guint32 PackedColour; #define RGB(r, g, b) ((guint32)(((guint8) (r) | ((guint16) (g) << 8))|(((guint32) (guint8) (b)) << 16))) #define GetRValue(rgb) ((guint8)(rgb)) diff --git a/libs/splines/q_shared.h b/libs/splines/q_shared.h index 74fd0d52..00d56403 100644 --- a/libs/splines/q_shared.h +++ b/libs/splines/q_shared.h @@ -254,7 +254,11 @@ typedef enum { #define MAX_QPATH 64 // max length of a quake game pathname +#ifdef PATH_MAX +#define MAX_OSPATH PATH_MAX // max length of a filesystem pathname +#else #define MAX_OSPATH 128 // max length of a filesystem pathname +#endif #define MAX_NAME_LENGTH 32 // max length of a client name diff --git a/tools/quake2/common/cmdlib.h b/tools/quake2/common/cmdlib.h index 42bd1dee..5b08b81a 100644 --- a/tools/quake2/common/cmdlib.h +++ b/tools/quake2/common/cmdlib.h @@ -50,7 +50,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA typedef unsigned char byte; #endif +#ifdef PATH_MAX +#define MAX_OS_PATH PATH_MAX +#else #define MAX_OS_PATH 1024 +#endif #define MEM_BLOCKSIZE 4096 /* diff --git a/tools/quake2/qdata_heretic2/common/cmdlib.h b/tools/quake2/qdata_heretic2/common/cmdlib.h index 78d7a237..a6cb14e9 100644 --- a/tools/quake2/qdata_heretic2/common/cmdlib.h +++ b/tools/quake2/qdata_heretic2/common/cmdlib.h @@ -57,7 +57,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "q_typedef.h" #endif +#ifdef PATH_MAX +#define MAX_OS_PATH PATH_MAX +#else #define MAX_OS_PATH 1024 +#endif #define MEM_BLOCKSIZE 4096 /* extern qboolean verbose;