more path lengths
authorrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 7 Nov 2008 15:54:07 +0000 (15:54 +0000)
committerrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 7 Nov 2008 15:54:07 +0000 (15:54 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@126 61c419a2-8eb2-4b30-bcec-8cead039b335

contrib/camera/camera.h
contrib/prtview/portals.h
libs/splines/q_shared.h
tools/quake2/common/cmdlib.h
tools/quake2/qdata_heretic2/common/cmdlib.h

index 4416f79..4c7f6cb 100644 (file)
@@ -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
index 06f4af4..c6bd678 100644 (file)
@@ -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))
index 74fd0d5..00d5640 100644 (file)
@@ -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
 
index 42bd1de..5b08b81 100644 (file)
@@ -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
 
 /*
index 78d7a23..a6cb14e 100644 (file)
@@ -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;