summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--samples/fx_lpng/lpng_v163/fx_pngmem.c8
-rw-r--r--third_party/libjpeg/fpdfapi_jchuff.c4
-rw-r--r--third_party/libjpeg/fpdfapi_jdhuff.c4
-rw-r--r--third_party/libjpeg/fpdfapi_jdmerge.c4
-rw-r--r--third_party/libjpeg/fpdfapi_jmemnobs.c8
-rw-r--r--third_party/libjpeg/jmorecfg.h4
-rw-r--r--third_party/zlib_v128/gzguts.h8
-rw-r--r--third_party/zlib_v128/zutil.c8
8 files changed, 0 insertions, 48 deletions
diff --git a/samples/fx_lpng/lpng_v163/fx_pngmem.c b/samples/fx_lpng/lpng_v163/fx_pngmem.c
index 9be580322a..cbbd4db914 100644
--- a/samples/fx_lpng/lpng_v163/fx_pngmem.c
+++ b/samples/fx_lpng/lpng_v163/fx_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/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/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)
{