diff options
author | Pierre Joye <pierre.php@gmail.com> | 2021-08-22 11:50:59 +0700 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2021-08-22 11:50:59 +0700 |
commit | 4cf3715a9a4d42d48553093ec7cbfe728334b798 (patch) | |
tree | 5f2244b7dd35cf21cb1ac1c04df2c3331e1c50b1 /src | |
parent | 439898e65fadc22fa2e84e7e60d99aa84bd12ab8 (diff) | |
download | libgd-4cf3715a9a4d42d48553093ec7cbfe728334b798.tar.gz |
add option to enable/disable CPP API
Diffstat (limited to 'src')
-rw-r--r-- | src/gd_io_stream.cxx | 5 | ||||
-rw-r--r-- | src/gdpp.cxx | 7 |
2 files changed, 12 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 diff --git a/src/gdpp.cxx b/src/gdpp.cxx index 5e579da..2a4bf58 100644 --- a/src/gdpp.cxx +++ b/src/gdpp.cxx @@ -1,3 +1,9 @@ +#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 @@ -259,3 +265,4 @@ std::istream & operator>> (std::istream & in, GD::Image & img) } #endif /* __cplusplus */ +#endif //ENABLE_CPP_API
\ No newline at end of file |