shithub: jbig2

Download patch

ref: fce47c5bcdb3d0fe30fdc0ac0868a27a76198a2a
parent: 66d05e3c767bad968a98b9f63a88b07cb9df624f
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Feb 5 10:09:59 EST 2003

Add double-include protection to the public header.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@208 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2.h
+++ b/jbig2.h
@@ -8,7 +8,7 @@
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
         
-    $Id: jbig2.h,v 1.15 2003/02/03 20:04:11 giles Exp $
+    $Id: jbig2.h,v 1.16 2003/02/05 15:09:59 giles Exp $
 */
 
 #ifdef __cplusplus
@@ -15,6 +15,9 @@
 extern "C" {
 #endif
 
+#ifndef _JBIG2_H
+#define _JBIG2_H
+
 /* warning levels */
 typedef enum {
   JBIG2_SEVERITY_DEBUG,
@@ -115,6 +118,8 @@
 int jbig2_parse_segment (Jbig2Ctx *ctx, Jbig2Segment *segment,
 			 const uint8_t *segment_data);
 void jbig2_free_segment (Jbig2Ctx *ctx, Jbig2Segment *segment);
+
+#endif /* _JBIG2_H */
 
 #ifdef __cplusplus
 }