summaryrefslogtreecommitdiff
path: root/src/gd_io_stream.cxx
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-22 11:50:59 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-22 11:50:59 +0700
commit4cf3715a9a4d42d48553093ec7cbfe728334b798 (patch)
tree5f2244b7dd35cf21cb1ac1c04df2c3331e1c50b1 /src/gd_io_stream.cxx
parent439898e65fadc22fa2e84e7e60d99aa84bd12ab8 (diff)
downloadlibgd-4cf3715a9a4d42d48553093ec7cbfe728334b798.tar.gz
add option to enable/disable CPP API
Diffstat (limited to 'src/gd_io_stream.cxx')
-rw-r--r--src/gd_io_stream.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gd_io_stream.cxx b/src/gd_io_stream.cxx
index 603780e..d4f2749 100644
--- a/src/gd_io_stream.cxx
+++ b/src/gd_io_stream.cxx
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+#ifdef ENABLE_CPP_API
/* *****************************************************************************
** Initial file written and documented by:
** Kevin Shepherd <kshepherd@php.net> December 2007
@@ -142,3 +146,4 @@ void ostreamIOCtx::FreeCtx(gdIOCtxPtr ctx)
}
#endif /* __cplusplus */
+#endif //ENABLE_CPP_API \ No newline at end of file