From a0959bed09c5a4aa2ab28f425cd8972ef40790d5 Mon Sep 17 00:00:00 2001 From: "briano%netscape.com" Date: Sat, 10 Apr 1999 01:05:53 +0000 Subject: [PATCH] It turns out that other platforms besides NTO don't have PATH_MAX, so this change should fix them all. --- gfx/src/gtk/nsPrintdGTK.h | 5 ++--- widget/src/gtk2/nsPrintdGTK.h | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gfx/src/gtk/nsPrintdGTK.h b/gfx/src/gtk/nsPrintdGTK.h index 17b4da02385..41f7e10f90a 100644 --- a/gfx/src/gtk/nsPrintdGTK.h +++ b/gfx/src/gtk/nsPrintdGTK.h @@ -35,9 +35,8 @@ PR_BEGIN_EXTERN_C #define NS_A4_SIZE 3 #endif -#ifdef NTO -// XXX Perhaps an NSPR macro would be a better solution. -#define PATH_MAX _POSIX_PATH_MAX +#ifndef PATH_MAX +#define PATH_MAX _POSIX_PATH_MAX #endif typedef struct unixprdata { diff --git a/widget/src/gtk2/nsPrintdGTK.h b/widget/src/gtk2/nsPrintdGTK.h index 17b4da02385..41f7e10f90a 100644 --- a/widget/src/gtk2/nsPrintdGTK.h +++ b/widget/src/gtk2/nsPrintdGTK.h @@ -35,9 +35,8 @@ PR_BEGIN_EXTERN_C #define NS_A4_SIZE 3 #endif -#ifdef NTO -// XXX Perhaps an NSPR macro would be a better solution. -#define PATH_MAX _POSIX_PATH_MAX +#ifndef PATH_MAX +#define PATH_MAX _POSIX_PATH_MAX #endif typedef struct unixprdata {