diff options
author | Mike Frysinger <vapier@gentoo.org> | 2018-08-31 01:21:34 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2018-08-31 01:21:34 -0400 |
commit | 4fc6d8a0d68b046f0c0eb09f67b749b0d1d4e203 (patch) | |
tree | 226cbbcc73431a5f3671af497b1f8ddf0adedffe /src/gdhelpers.h | |
parent | c9c4f0ed5369236f28e068abd0bd7f0906c07fd2 (diff) | |
download | libgd-4fc6d8a0d68b046f0c0eb09f67b749b0d1d4e203.tar.gz |
rework ifdef header protection #456
Move all content inside of the header ifdef checks. There's
no need to have the C++ checks and includes outside of them.
Diffstat (limited to 'src/gdhelpers.h')
-rw-r--r-- | src/gdhelpers.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gdhelpers.h b/src/gdhelpers.h index 2a96b8b..9c7ef10 100644 --- a/src/gdhelpers.h +++ b/src/gdhelpers.h @@ -1,10 +1,10 @@ +#ifndef GDHELPERS_H +#define GDHELPERS_H 1 + #ifdef __cplusplus extern "C" { #endif -#ifndef GDHELPERS_H -#define GDHELPERS_H 1 - /* sys/types.h is needed for size_t on Sparc-SunOS-4.1 */ #ifndef _WIN32_WCE #include <sys/types.h> @@ -69,8 +69,8 @@ extern "C" { #define DPI2DPCM(dpi) (unsigned int)((dpi)/2.54 + 0.5) #define DPI2DPM(dpi) (unsigned int)((dpi)/0.0254 + 0.5) -#endif /* GDHELPERS_H */ - #ifdef __cplusplus } #endif + +#endif /* GDHELPERS_H */ |