diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-15 12:06:28 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-15 12:06:28 -0800 |
commit | 45f2a47df2d6505c351ee0586969bf142c93bf6b (patch) | |
tree | b9242a35195cd779f38c3566490209024afcb1b9 | |
parent | 2ac8124c572a6024d0200fb095409edc9549d38a (diff) | |
download | pdfium-45f2a47df2d6505c351ee0586969bf142c93bf6b.tar.xz |
XFA: Remove ifdefs for _FX_MANAGED_CODE_.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1591563002 .
-rw-r--r-- | third_party/libjpeg/fpdfapi_jchuff.c | 4 | ||||
-rw-r--r-- | third_party/libjpeg/fpdfapi_jdhuff.c | 4 | ||||
-rw-r--r-- | third_party/libjpeg/fpdfapi_jdmerge.c | 4 | ||||
-rw-r--r-- | third_party/libjpeg/fpdfapi_jmemnobs.c | 8 | ||||
-rw-r--r-- | third_party/libjpeg/jmorecfg.h | 4 | ||||
-rw-r--r-- | third_party/lpng_v163/pngmem.c | 8 | ||||
-rw-r--r-- | third_party/zlib_v128/gzguts.h | 8 | ||||
-rw-r--r-- | third_party/zlib_v128/zutil.c | 8 |
8 files changed, 0 insertions, 48 deletions
diff --git a/third_party/libjpeg/fpdfapi_jchuff.c b/third_party/libjpeg/fpdfapi_jchuff.c index 02d91e2cb4..005220c3b2 100644 --- a/third_party/libjpeg/fpdfapi_jchuff.c +++ b/third_party/libjpeg/fpdfapi_jchuff.c @@ -19,10 +19,6 @@ #include "jpeglib.h" #include "jchuff.h" /* Declarations shared with jcphuff.c */ -#ifdef _FX_MANAGED_CODE_ -#define savable_state savable_state_c -#endif - /* Expanded entropy encoder object for Huffman encoding. * * The savable_state subrecord contains fields that change within an MCU, diff --git a/third_party/libjpeg/fpdfapi_jdhuff.c b/third_party/libjpeg/fpdfapi_jdhuff.c index 4b0454d5a0..2c9495c2b4 100644 --- a/third_party/libjpeg/fpdfapi_jdhuff.c +++ b/third_party/libjpeg/fpdfapi_jdhuff.c @@ -19,10 +19,6 @@ #include "jpeglib.h" #include "jdhuff.h" /* Declarations shared with jdphuff.c */ -#ifdef _FX_MANAGED_CODE_ -#define savable_state savable_state_d -#endif - /* * Expanded entropy decoder object for Huffman decoding. * diff --git a/third_party/libjpeg/fpdfapi_jdmerge.c b/third_party/libjpeg/fpdfapi_jdmerge.c index 519bbad685..a175a56bf7 100644 --- a/third_party/libjpeg/fpdfapi_jdmerge.c +++ b/third_party/libjpeg/fpdfapi_jdmerge.c @@ -38,10 +38,6 @@ #ifdef UPSAMPLE_MERGING_SUPPORTED -#ifdef _FX_MANAGED_CODE_ -#define my_upsampler my_upsampler_m -#endif - /* Private subobject */ typedef struct { diff --git a/third_party/libjpeg/fpdfapi_jmemnobs.c b/third_party/libjpeg/fpdfapi_jmemnobs.c index 201c5d6882..0344f6fd73 100644 --- a/third_party/libjpeg/fpdfapi_jmemnobs.c +++ b/third_party/libjpeg/fpdfapi_jmemnobs.c @@ -25,17 +25,9 @@ extern void * malloc JPP((size_t size)); extern void free JPP((void *ptr)); #endif -#if defined(_FX_MANAGED_CODE_) && defined(__cplusplus) -extern "C" { -#endif - void* FXMEM_DefaultAlloc(int byte_size, int); void FXMEM_DefaultFree(void* pointer, int); -#if defined(_FX_MANAGED_CODE_) && defined(__cplusplus) -} -#endif - /* * Memory allocation and freeing are controlled by the regular library * routines malloc() and free(). diff --git a/third_party/libjpeg/jmorecfg.h b/third_party/libjpeg/jmorecfg.h index 88d210954c..a80d90495e 100644 --- a/third_party/libjpeg/jmorecfg.h +++ b/third_party/libjpeg/jmorecfg.h @@ -195,12 +195,8 @@ typedef unsigned int JDIMENSION; /* a function referenced thru EXTERNs: */ #define GLOBAL(type) type -#ifdef _FX_MANAGED_CODE_ -#define EXTERN(type) extern "C" type -#else /* a reference to a GLOBAL function: */ #define EXTERN(type) extern type -#endif /* This macro is used to declare a "method", that is, a function pointer. diff --git a/third_party/lpng_v163/pngmem.c b/third_party/lpng_v163/pngmem.c index 9be580322a..cbbd4db914 100644 --- a/third_party/lpng_v163/pngmem.c +++ b/third_party/lpng_v163/pngmem.c @@ -18,17 +18,9 @@ #include "pngpriv.h"
-#if defined(_FX_MANAGED_CODE_) && defined(__cplusplus)
-extern "C" {
-#endif
-
void* FXMEM_DefaultAlloc(int byte_size, int);
void FXMEM_DefaultFree(void* pointer, int);
-#if defined(_FX_MANAGED_CODE_) && defined(__cplusplus)
-}
-#endif
-
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
/* Free a png_struct */
void /* PRIVATE */
diff --git a/third_party/zlib_v128/gzguts.h b/third_party/zlib_v128/gzguts.h index a877c0eee3..e2c3b67eed 100644 --- a/third_party/zlib_v128/gzguts.h +++ b/third_party/zlib_v128/gzguts.h @@ -116,17 +116,9 @@ extern void free OF((voidpf ptr)); #endif -#if defined(_FX_MANAGED_CODE_) && defined(__cplusplus) -extern "C" { -#endif - extern void* FXMEM_DefaultAlloc(size_t, int); extern void FXMEM_DefaultFree(void*, int); -#if defined(_FX_MANAGED_CODE_) && defined(__cplusplus) -} -#endif - #define malloc(size) FXMEM_DefaultAlloc(size, 0) #define free(ptr) FXMEM_DefaultFree(ptr, 0) diff --git a/third_party/zlib_v128/zutil.c b/third_party/zlib_v128/zutil.c index 02b945f7d8..5fa007964d 100644 --- a/third_party/zlib_v128/zutil.c +++ b/third_party/zlib_v128/zutil.c @@ -326,17 +326,9 @@ void ZLIB_INTERNAL zcfree (opaque, ptr) #endif /* !Z_SOLO */ #endif /* 0 */ -#if defined(_FX_MANAGED_CODE_) && defined(__cplusplus) -extern "C" { -#endif - extern void* FXMEM_DefaultAlloc(size_t, int); extern void FXMEM_DefaultFree(void*, int); -#if defined(_FX_MANAGED_CODE_) && defined(__cplusplus) -} -#endif - /* XYQ 2007-1-19 */ voidpf zcalloc(voidpf opaque, unsigned items, unsigned size) { |