summaryrefslogtreecommitdiff
path: root/pdf/pdf_types.h
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-10-21 15:44:55 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-10-24 14:28:05 +0100
commit6ad1e9459279276785aa6a230b5c683d4a5c029b (patch)
tree5b3b43c85c333d41cfb6452aaf80fba3c335f0f6 /pdf/pdf_types.h
parente6bc48575443446ca79922d85b5154441ef9febc (diff)
downloadghostpdl-6ad1e9459279276785aa6a230b5c683d4a5c029b.tar.gz
Bug 706009: Fix use of TRUE/FALSE on AIX
It appears that "TRUE" and "FALSE" are "special" on AIX, and using them in the PDF object definitions causes the build to fail on AIX.
Diffstat (limited to 'pdf/pdf_types.h')
-rw-r--r--pdf/pdf_types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf/pdf_types.h b/pdf/pdf_types.h
index 6f78dde7f..7c543f172 100644
--- a/pdf/pdf_types.h
+++ b/pdf/pdf_types.h
@@ -154,8 +154,8 @@ typedef enum pdf_key_e {
} pdf_key;
#define PDF_NULL_OBJ ((pdf_obj *)(uintptr_t)TOKEN_null)
-#define PDF_TRUE_OBJ ((pdf_obj *)(uintptr_t)TOKEN_TRUE)
-#define PDF_FALSE_OBJ ((pdf_obj *)(uintptr_t)TOKEN_FALSE)
+#define PDF_TRUE_OBJ ((pdf_obj *)(uintptr_t)TOKEN_PDF_TRUE)
+#define PDF_FALSE_OBJ ((pdf_obj *)(uintptr_t)TOKEN_PDF_FALSE)
#define PDF_TOKEN_AS_OBJ(token) ((pdf_obj *)(uintptr_t)(token))
typedef struct pdf_keyword_s {
@@ -265,7 +265,7 @@ static inline pdf_obj_type pdfi_type_of_imp(pdf_obj *obj)
{
if ((uintptr_t)obj > TOKEN__LAST_KEY)
return obj->type;
- else if ((uintptr_t)obj == TOKEN_TRUE || (uintptr_t)obj == TOKEN_FALSE)
+ else if ((uintptr_t)obj == TOKEN_PDF_TRUE || (uintptr_t)obj == TOKEN_PDF_FALSE)
return PDF_BOOL;
else if ((uintptr_t)obj == TOKEN_null)
return PDF_NULL;