about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-04-04 20:59:01 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-04-04 20:59:01 +0000
commite7537327685c49c724dd8f7e57cfe52ad10c15e8 (patch)
treeabf4f125b939d06d2e369eb2ca09191baa492e7c /converter
parentb0528cd8ea2a8527c4bbae5176c8f69fd0104769 (diff)
downloadnetpbm-mirror-e7537327685c49c724dd8f7e57cfe52ad10c15e8.tar.gz
netpbm-mirror-e7537327685c49c724dd8f7e57cfe52ad10c15e8.tar.xz
netpbm-mirror-e7537327685c49c724dd8f7e57cfe52ad10c15e8.zip
Remove pm_c_util.h from sshopt.h
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@871 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/other/bmptopnm.c1
-rw-r--r--converter/other/cameratopam/cameratopam.c1
-rw-r--r--converter/other/giftopnm.c1
-rw-r--r--converter/other/hdifftopam.c1
-rw-r--r--converter/other/infotopam.c1
-rw-r--r--converter/other/jpeg2000/jpeg2ktopam.c1
-rw-r--r--converter/other/jpeg2000/pamtojpeg2k.c1
-rw-r--r--converter/other/jpegtopnm.c2
-rw-r--r--converter/other/pamtodjvurle.c1
-rw-r--r--converter/other/pamtofits.c1
-rw-r--r--converter/other/pamtogif.c1
-rw-r--r--converter/other/pamtohdiff.c1
-rw-r--r--converter/other/pamtohtmltbl.c1
-rw-r--r--converter/other/pamtompfont.c1
-rw-r--r--converter/other/pamtopfm.c1
-rw-r--r--converter/other/pamtopnm.c1
-rw-r--r--converter/other/pamtosvg/pamtosvg.c1
-rw-r--r--converter/other/pamtotga.c1
-rw-r--r--converter/other/pamtouil.c2
-rw-r--r--converter/other/pfmtopam.c1
-rw-r--r--converter/other/pgmtopbm.c1
-rw-r--r--converter/other/pgmtoppm.c1
-rw-r--r--converter/other/pngtopam.c1
-rw-r--r--converter/other/pngtopnm.c1
-rw-r--r--converter/other/pnmtojpeg.c2
-rw-r--r--converter/other/pnmtopalm/palmtopnm.c1
-rw-r--r--converter/other/pnmtopalm/pnmtopalm.c1
-rw-r--r--converter/other/pnmtopclxl.c1
-rw-r--r--converter/other/pnmtopng.c2
-rw-r--r--converter/other/pnmtops.c2
-rw-r--r--converter/other/pnmtoxwd.c2
-rw-r--r--converter/other/pstopnm.c1
-rw-r--r--converter/other/rlatopam.c1
-rw-r--r--converter/other/rletopnm.c1
-rw-r--r--converter/other/tifftopnm.c1
-rw-r--r--converter/pbm/g3topbm.c1
-rw-r--r--converter/pbm/pbmtoepsi.c1
-rw-r--r--converter/pbm/pbmtoepson.c3
-rw-r--r--converter/pbm/pbmtoescp2.c1
-rw-r--r--converter/pbm/pbmtog3.c3
-rw-r--r--converter/pbm/pbmtoibm23xx.c1
-rw-r--r--converter/pbm/pbmtolj.c1
-rw-r--r--converter/pbm/pbmtopsg3.c1
-rw-r--r--converter/pbm/pbmtoxbm.c1
-rw-r--r--converter/pgm/rawtopgm.c2
-rw-r--r--converter/ppm/411toppm.c1
-rw-r--r--converter/ppm/eyuvtoppm.c2
-rw-r--r--converter/ppm/pcxtoppm.c1
-rw-r--r--converter/ppm/ppmtobmp.c1
-rw-r--r--converter/ppm/ppmtogif.c1
-rw-r--r--converter/ppm/ppmtopcx.c1
-rw-r--r--converter/ppm/ppmtoterm.c1
-rw-r--r--converter/ppm/ppmtowinicon.c1
-rw-r--r--converter/ppm/ppmtoxpm.c2
-rw-r--r--converter/ppm/tgatoppm.c2
-rw-r--r--converter/ppm/winicontoppm.c1
-rw-r--r--converter/ppm/ximtoppm.c2
-rw-r--r--converter/ppm/xpmtoppm.c1
-rw-r--r--converter/ppm/yuvsplittoppm.c2
59 files changed, 73 insertions, 2 deletions
diff --git a/converter/other/bmptopnm.c b/converter/other/bmptopnm.c
index 69f17bcc..3c8adcf0 100644
--- a/converter/other/bmptopnm.c
+++ b/converter/other/bmptopnm.c
@@ -27,6 +27,7 @@
 #include <limits.h>
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/other/cameratopam/cameratopam.c b/converter/other/cameratopam/cameratopam.c
index f2c6d78c..b2d6da9b 100644
--- a/converter/other/cameratopam/cameratopam.c
+++ b/converter/other/cameratopam/cameratopam.c
@@ -30,6 +30,7 @@
   #include <unistd.h>
 #endif
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "pam.h"
diff --git a/converter/other/giftopnm.c b/converter/other/giftopnm.c
index a79a0bbe..df049bf3 100644
--- a/converter/other/giftopnm.c
+++ b/converter/other/giftopnm.c
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "nstring.h"
 #include "shhopt.h"
diff --git a/converter/other/hdifftopam.c b/converter/other/hdifftopam.c
index 48282526..7bfeed9b 100644
--- a/converter/other/hdifftopam.c
+++ b/converter/other/hdifftopam.c
@@ -9,6 +9,7 @@
 #include <string.h>
 #include <stdio.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/other/infotopam.c b/converter/other/infotopam.c
index 4f29eb07..21fa8ee2 100644
--- a/converter/other/infotopam.c
+++ b/converter/other/infotopam.c
@@ -65,6 +65,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/other/jpeg2000/jpeg2ktopam.c b/converter/other/jpeg2000/jpeg2ktopam.c
index e11e9fb4..e6db7658 100644
--- a/converter/other/jpeg2000/jpeg2ktopam.c
+++ b/converter/other/jpeg2000/jpeg2ktopam.c
@@ -13,6 +13,7 @@
 #define _XOPEN_SOURCE 600
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/other/jpeg2000/pamtojpeg2k.c b/converter/other/jpeg2000/pamtojpeg2k.c
index 851d2bf9..70774725 100644
--- a/converter/other/jpeg2000/pamtojpeg2k.c
+++ b/converter/other/jpeg2000/pamtojpeg2k.c
@@ -13,6 +13,7 @@
 #define _XOPEN_SOURCE 600
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/other/jpegtopnm.c b/converter/other/jpegtopnm.c
index 4679d497..07a7dfb0 100644
--- a/converter/other/jpegtopnm.c
+++ b/converter/other/jpegtopnm.c
@@ -61,6 +61,8 @@
    itself, but doesn't.
 */
 #include <jpeglib.h>
+
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/other/pamtodjvurle.c b/converter/other/pamtodjvurle.c
index fecf410e..2d26eeb0 100644
--- a/converter/other/pamtodjvurle.c
+++ b/converter/other/pamtodjvurle.c
@@ -16,6 +16,7 @@
 #include <stdio.h>
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "pammap.h"
 #include "shhopt.h"
diff --git a/converter/other/pamtofits.c b/converter/other/pamtofits.c
index 7a71ff56..7a1c70de 100644
--- a/converter/other/pamtofits.c
+++ b/converter/other/pamtofits.c
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <stdio.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/other/pamtogif.c b/converter/other/pamtogif.c
index edaf0695..b8df9626 100644
--- a/converter/other/pamtogif.c
+++ b/converter/other/pamtogif.c
@@ -9,6 +9,7 @@
 #include <assert.h>
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/other/pamtohdiff.c b/converter/other/pamtohdiff.c
index 0e1ff00f..2d5f6a61 100644
--- a/converter/other/pamtohdiff.c
+++ b/converter/other/pamtohdiff.c
@@ -16,6 +16,7 @@
 #include <string.h>
 #include <stdio.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "shhopt.h"
 
diff --git a/converter/other/pamtohtmltbl.c b/converter/other/pamtohtmltbl.c
index 70aa3b2d..5335ff9f 100644
--- a/converter/other/pamtohtmltbl.c
+++ b/converter/other/pamtohtmltbl.c
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "pam.h"
diff --git a/converter/other/pamtompfont.c b/converter/other/pamtompfont.c
index b8d11aea..f755dfef 100644
--- a/converter/other/pamtompfont.c
+++ b/converter/other/pamtompfont.c
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "pm.h"
diff --git a/converter/other/pamtopfm.c b/converter/other/pamtopfm.c
index ee44eeb5..129b8eee 100644
--- a/converter/other/pamtopfm.c
+++ b/converter/other/pamtopfm.c
@@ -15,6 +15,7 @@
 #include <string.h>
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "pm_gamma.h"
 #include "shhopt.h"
diff --git a/converter/other/pamtopnm.c b/converter/other/pamtopnm.c
index 6835b43f..86f6514c 100644
--- a/converter/other/pamtopnm.c
+++ b/converter/other/pamtopnm.c
@@ -12,6 +12,7 @@
 
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/other/pamtosvg/pamtosvg.c b/converter/other/pamtosvg/pamtosvg.c
index 36f69b59..dbe67c74 100644
--- a/converter/other/pamtosvg/pamtosvg.c
+++ b/converter/other/pamtosvg/pamtosvg.c
@@ -4,6 +4,7 @@
 #include <assert.h>
 #include <math.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "nstring.h"
 #include "shhopt.h"
diff --git a/converter/other/pamtotga.c b/converter/other/pamtotga.c
index addd2d91..c23b92b1 100644
--- a/converter/other/pamtotga.c
+++ b/converter/other/pamtotga.c
@@ -15,6 +15,7 @@
 
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "pammap.h"
 #include "shhopt.h"
diff --git a/converter/other/pamtouil.c b/converter/other/pamtouil.c
index 3e67da7d..209ebf16 100644
--- a/converter/other/pamtouil.c
+++ b/converter/other/pamtouil.c
@@ -17,6 +17,8 @@
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 #include <ctype.h>
 #include <string.h>
+
+#include "pm_c_util.h"
 #include "pam.h"
 #include "pammap.h"
 #include "colorname.h"
diff --git a/converter/other/pfmtopam.c b/converter/other/pfmtopam.c
index 9430f5fa..1617ed31 100644
--- a/converter/other/pfmtopam.c
+++ b/converter/other/pfmtopam.c
@@ -15,6 +15,7 @@
 #include <string.h>
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "pm_gamma.h"
 #include "shhopt.h"
diff --git a/converter/other/pgmtopbm.c b/converter/other/pgmtopbm.c
index 34cc2c91..f828b716 100644
--- a/converter/other/pgmtopbm.c
+++ b/converter/other/pgmtopbm.c
@@ -12,6 +12,7 @@
 
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "shhopt.h"
 #include "pgm.h"
 #include "dithers.h"
diff --git a/converter/other/pgmtoppm.c b/converter/other/pgmtoppm.c
index 12bc7d25..7194db49 100644
--- a/converter/other/pgmtoppm.c
+++ b/converter/other/pgmtoppm.c
@@ -13,6 +13,7 @@
 #define _BSD_SOURCE  /* Make sure strdup() is in <string.h> */
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "ppm.h"
diff --git a/converter/other/pngtopam.c b/converter/other/pngtopam.c
index 3039c769..b3f934c7 100644
--- a/converter/other/pngtopam.c
+++ b/converter/other/pngtopam.c
@@ -24,6 +24,7 @@
 #include <png.h>    /* includes zlib.h and setjmp.h */
 #define VERSION "2.37.4 (5 December 1999) +netpbm"
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "nstring.h"
 #include "shhopt.h"
diff --git a/converter/other/pngtopnm.c b/converter/other/pngtopnm.c
index 8ffff617..fe32f641 100644
--- a/converter/other/pngtopnm.c
+++ b/converter/other/pngtopnm.c
@@ -25,6 +25,7 @@
 #include <png.h>    /* includes zlib.h and setjmp.h */
 #define VERSION "2.37.4 (5 December 1999) +netpbm"
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "nstring.h"
 #include "shhopt.h"
diff --git a/converter/other/pnmtojpeg.c b/converter/other/pnmtojpeg.c
index 3110542d..198aa156 100644
--- a/converter/other/pnmtojpeg.c
+++ b/converter/other/pnmtojpeg.c
@@ -29,6 +29,8 @@
    itself, but doesn't.
 */
 #include <jpeglib.h>
+
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/other/pnmtopalm/palmtopnm.c b/converter/other/pnmtopalm/palmtopnm.c
index 9cd695e3..d66af69b 100644
--- a/converter/other/pnmtopalm/palmtopnm.c
+++ b/converter/other/pnmtopalm/palmtopnm.c
@@ -15,6 +15,7 @@
 #include <string.h>
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/other/pnmtopalm/pnmtopalm.c b/converter/other/pnmtopalm/pnmtopalm.c
index f5f6e44a..3d20788c 100644
--- a/converter/other/pnmtopalm/pnmtopalm.c
+++ b/converter/other/pnmtopalm/pnmtopalm.c
@@ -21,6 +21,7 @@
 #include <assert.h>
 #include <limits.h>
 
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "palm.h"
 #include "shhopt.h"
diff --git a/converter/other/pnmtopclxl.c b/converter/other/pnmtopclxl.c
index 9819ebe4..34f7065d 100644
--- a/converter/other/pnmtopclxl.c
+++ b/converter/other/pnmtopclxl.c
@@ -29,6 +29,7 @@
 #include <sys/types.h>
 #include <ctype.h>
 
+#include "pm_c_util.h"
 #include "pam.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/other/pnmtopng.c b/converter/other/pnmtopng.c
index 72177507..6d1b0efc 100644
--- a/converter/other/pnmtopng.c
+++ b/converter/other/pnmtopng.c
@@ -60,6 +60,8 @@
 #include <string.h> /* strcat() */
 #include <limits.h>
 #include <png.h>    /* includes zlib.h and setjmp.h */
+
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "pngtxt.h"
 #include "shhopt.h"
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c
index 410fa0b9..b43cb483 100644
--- a/converter/other/pnmtops.c
+++ b/converter/other/pnmtops.c
@@ -34,6 +34,8 @@
 
 #include <string.h>
 #include <assert.h>
+
+#include "pm_c_util.h"
 #include "pam.h"
 #include "mallocvar.h"
 #include "shhopt.h"
diff --git a/converter/other/pnmtoxwd.c b/converter/other/pnmtoxwd.c
index d0625b0b..b6439d28 100644
--- a/converter/other/pnmtoxwd.c
+++ b/converter/other/pnmtoxwd.c
@@ -11,6 +11,8 @@
 */
 
 #include <string.h>
+
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/other/pstopnm.c b/converter/other/pstopnm.c
index f99478db..ba1470b0 100644
--- a/converter/other/pstopnm.c
+++ b/converter/other/pstopnm.c
@@ -26,6 +26,7 @@
 #include <sys/wait.h>  
 #include <sys/stat.h>
 
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/other/rlatopam.c b/converter/other/rlatopam.c
index ae1326ca..703c4820 100644
--- a/converter/other/rlatopam.c
+++ b/converter/other/rlatopam.c
@@ -16,6 +16,7 @@
 #include <string.h>
 #include <errno.h>
 
+#include "pm_c_util.h"
 #include "shhopt.h"
 #include "mallocvar.h"
 #include "pam.h"
diff --git a/converter/other/rletopnm.c b/converter/other/rletopnm.c
index f98ea8a8..83ada51b 100644
--- a/converter/other/rletopnm.c
+++ b/converter/other/rletopnm.c
@@ -46,6 +46,7 @@
 #define NO_DECLARE_MALLOC
 #include <rle.h>
 
+#include "pm_c_util.h"
 #include "pnm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/other/tifftopnm.c b/converter/other/tifftopnm.c
index fe0de2d7..a8c0fe1d 100644
--- a/converter/other/tifftopnm.c
+++ b/converter/other/tifftopnm.c
@@ -53,6 +53,7 @@
 #include <string.h>
 #include <stdio.h>
 
+#include "pm_c_util.h"
 #include "shhopt.h"
 #include "mallocvar.h"
 #include "nstring.h"
diff --git a/converter/pbm/g3topbm.c b/converter/pbm/g3topbm.c
index 3858dc7a..66cd9f9e 100644
--- a/converter/pbm/g3topbm.c
+++ b/converter/pbm/g3topbm.c
@@ -20,6 +20,7 @@
 
 #define _BSD_SOURCE   /* Make nstring.h define strcaseeq() */
 
+#include "pm_c_util.h"
 #include "pbm.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/pbm/pbmtoepsi.c b/converter/pbm/pbmtoepsi.c
index fc8cee7d..b770a7c4 100644
--- a/converter/pbm/pbmtoepsi.c
+++ b/converter/pbm/pbmtoepsi.c
@@ -16,6 +16,7 @@
 ** implied warranty.
 */
 
+#include "pm_c_util.h"
 #include "pbm.h"
 #include "shhopt.h"
 
diff --git a/converter/pbm/pbmtoepson.c b/converter/pbm/pbmtoepson.c
index d26734d4..b485d888 100644
--- a/converter/pbm/pbmtoepson.c
+++ b/converter/pbm/pbmtoepson.c
@@ -16,8 +16,9 @@
 #include <stdio.h>
 #include <string.h>
 
-#include "shhopt.h"
+#include "pm_c_util.h"
 #include "mallocvar.h"
+#include "shhopt.h"
 
 #include "pbm.h"
 
diff --git a/converter/pbm/pbmtoescp2.c b/converter/pbm/pbmtoescp2.c
index 787f7027..973c8781 100644
--- a/converter/pbm/pbmtoescp2.c
+++ b/converter/pbm/pbmtoescp2.c
@@ -16,6 +16,7 @@
 
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "pbm.h"
 #include "shhopt.h"
 
diff --git a/converter/pbm/pbmtog3.c b/converter/pbm/pbmtog3.c
index 3fe7f3fc..44d9a26b 100644
--- a/converter/pbm/pbmtog3.c
+++ b/converter/pbm/pbmtog3.c
@@ -18,12 +18,13 @@
 
 #include <assert.h>
 
-#include "pbm.h"
+#include "pm_c_util.h"
 #include "shhopt.h"
 #include "mallocvar.h"
 #include "bitreverse.h"
 #include "wordaccess.h"
 #include "g3.h"
+#include "pbm.h"
 
 #define TC_MC 64
 
diff --git a/converter/pbm/pbmtoibm23xx.c b/converter/pbm/pbmtoibm23xx.c
index 973f7de0..a83e260d 100644
--- a/converter/pbm/pbmtoibm23xx.c
+++ b/converter/pbm/pbmtoibm23xx.c
@@ -46,6 +46,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "pbm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/pbm/pbmtolj.c b/converter/pbm/pbmtolj.c
index e8373050..be28f635 100644
--- a/converter/pbm/pbmtolj.c
+++ b/converter/pbm/pbmtolj.c
@@ -27,6 +27,7 @@
 ** implied warranty.
 */
 
+#include "pm_c_util.h"
 #include "pbm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/pbm/pbmtopsg3.c b/converter/pbm/pbmtopsg3.c
index 68b265f0..54d0a0a0 100644
--- a/converter/pbm/pbmtopsg3.c
+++ b/converter/pbm/pbmtopsg3.c
@@ -26,6 +26,7 @@
 #include <unistd.h>
 #include <ctype.h>
 
+#include "pm_c_util.h"
 #include "pbm.h"
 #include "shhopt.h"
 
diff --git a/converter/pbm/pbmtoxbm.c b/converter/pbm/pbmtoxbm.c
index 0051194c..937e56c5 100644
--- a/converter/pbm/pbmtoxbm.c
+++ b/converter/pbm/pbmtoxbm.c
@@ -25,6 +25,7 @@
 
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "pbm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/pgm/rawtopgm.c b/converter/pgm/rawtopgm.c
index 4eac91d2..0180a02c 100644
--- a/converter/pgm/rawtopgm.c
+++ b/converter/pgm/rawtopgm.c
@@ -11,6 +11,8 @@
 */
 
 #include <math.h>
+
+#include "pm_c_util.h"
 #include "pgm.h"
 #include "shhopt.h"
 
diff --git a/converter/ppm/411toppm.c b/converter/ppm/411toppm.c
index a5b25ac1..6ece4c4b 100644
--- a/converter/ppm/411toppm.c
+++ b/converter/ppm/411toppm.c
@@ -58,6 +58,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/ppm/eyuvtoppm.c b/converter/ppm/eyuvtoppm.c
index dcbb9547..33d57409 100644
--- a/converter/ppm/eyuvtoppm.c
+++ b/converter/ppm/eyuvtoppm.c
@@ -34,6 +34,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/ppm/pcxtoppm.c b/converter/ppm/pcxtoppm.c
index 9f403538..25a81531 100644
--- a/converter/ppm/pcxtoppm.c
+++ b/converter/ppm/pcxtoppm.c
@@ -31,6 +31,7 @@
  *  - moved check of 16-color-palette into pcx_16col_to_ppm(),
  *    now checks if it contains only a single color
  */
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "ppm.h"
diff --git a/converter/ppm/ppmtobmp.c b/converter/ppm/ppmtobmp.c
index 0e7a8328..9075ad6d 100644
--- a/converter/ppm/ppmtobmp.c
+++ b/converter/ppm/ppmtobmp.c
@@ -19,6 +19,7 @@
 #include <assert.h>
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "bmp.h"
diff --git a/converter/ppm/ppmtogif.c b/converter/ppm/ppmtogif.c
index 2718af88..93feaa95 100644
--- a/converter/ppm/ppmtogif.c
+++ b/converter/ppm/ppmtogif.c
@@ -19,6 +19,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "pm_c_util.h"
 #include "mallocvar.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/ppm/ppmtopcx.c b/converter/ppm/ppmtopcx.c
index bdcfc5c7..edc44149 100644
--- a/converter/ppm/ppmtopcx.c
+++ b/converter/ppm/ppmtopcx.c
@@ -15,6 +15,7 @@
 */
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
diff --git a/converter/ppm/ppmtoterm.c b/converter/ppm/ppmtoterm.c
index 72105705..81df614e 100644
--- a/converter/ppm/ppmtoterm.c
+++ b/converter/ppm/ppmtoterm.c
@@ -21,6 +21,7 @@
 
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "shhopt.h"
 
diff --git a/converter/ppm/ppmtowinicon.c b/converter/ppm/ppmtowinicon.c
index bcaa0e08..1a8cc3a7 100644
--- a/converter/ppm/ppmtowinicon.c
+++ b/converter/ppm/ppmtowinicon.c
@@ -13,6 +13,7 @@
 #include <math.h>
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "winico.h"
 #include "ppm.h"
 #include "mallocvar.h"
diff --git a/converter/ppm/ppmtoxpm.c b/converter/ppm/ppmtoxpm.c
index ae597125..18ea61a8 100644
--- a/converter/ppm/ppmtoxpm.c
+++ b/converter/ppm/ppmtoxpm.c
@@ -39,6 +39,8 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
+
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/ppm/tgatoppm.c b/converter/ppm/tgatoppm.c
index da1c3beb..f8538214 100644
--- a/converter/ppm/tgatoppm.c
+++ b/converter/ppm/tgatoppm.c
@@ -16,6 +16,8 @@
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 
 #include <string.h>
+
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "tga.h"
 #include "shhopt.h"
diff --git a/converter/ppm/winicontoppm.c b/converter/ppm/winicontoppm.c
index 9a606a93..ad859c94 100644
--- a/converter/ppm/winicontoppm.c
+++ b/converter/ppm/winicontoppm.c
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <assert.h>
 
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/ppm/ximtoppm.c b/converter/ppm/ximtoppm.c
index bb842f02..98aad2d7 100644
--- a/converter/ppm/ximtoppm.c
+++ b/converter/ppm/ximtoppm.c
@@ -14,6 +14,8 @@
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 
 #include <string.h>
+
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "xim.h"
 #include "shhopt.h"
diff --git a/converter/ppm/xpmtoppm.c b/converter/ppm/xpmtoppm.c
index 97be6cc9..5884d3d4 100644
--- a/converter/ppm/xpmtoppm.c
+++ b/converter/ppm/xpmtoppm.c
@@ -33,6 +33,7 @@
 
 #include <string.h>
 
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "shhopt.h"
 #include "nstring.h"
diff --git a/converter/ppm/yuvsplittoppm.c b/converter/ppm/yuvsplittoppm.c
index 0f5e19a3..b3088812 100644
--- a/converter/ppm/yuvsplittoppm.c
+++ b/converter/ppm/yuvsplittoppm.c
@@ -20,6 +20,8 @@
 */
 
 #include <string.h>
+
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "nstring.h"
 #include "shhopt.h"