Define preprocessor macro PDF_USE_PARTITION_ALLOC

We will need to know this in order to support an implementation of
UnownedPtr<T> based upon base::raw_ptr<T>.

-- assert that the symbol is correctly defined in conditionally
   compiled files.

Change-Id: Ic70af737634087da60abbae80e47bbc4d80e4211
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/103497
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index a853212..0cd3fa9 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -40,6 +40,10 @@
     defines += [ "_SKIA_SUPPORT_" ]
   }
 
+  if (pdf_use_partition_alloc) {
+    defines += [ "PDF_USE_PARTITION_ALLOC" ]
+  }
+
   if (is_win) {
     # Assume UTF-8 by default to avoid code page dependencies.
     cflags += [ "/utf-8" ]