ref: 429b6ab2e29b346f34da9156f423c98117fa5ae4
parent: 28d7e993bae56174776f59eb00c6a4bbaa1235e4
author: Robin Watts <Robin.Watts@artifex.com>
date: Fri May 8 10:50:08 EDT 2020
lgtm.com issue: Add some missing "repeat include" guards.
--- a/jbig2.h
+++ b/jbig2.h
@@ -17,14 +17,14 @@
jbig2dec
*/
+#ifndef _JBIG2_H
+#define _JBIG2_H
+
#ifdef __cplusplus
extern "C"
{
#endif
-#ifndef _JBIG2_H
-#define _JBIG2_H
-
#define JBIG2_VERSION_MAJOR (0)
#define JBIG2_VERSION_MINOR (18)
@@ -105,8 +105,6 @@
/* mark the current page as complete, simulating an end-of-page segment (for broken streams) */
int jbig2_complete_page(Jbig2Ctx *ctx);
-#endif /* _JBIG2_H */
-
/* If we don't have a definition for inline, make it nothing so the code will compile */
#ifndef inline
#define inline
@@ -115,3 +113,5 @@
#ifdef __cplusplus
}
#endif
+
+#endif /* _JBIG2_H */