summaryrefslogtreecommitdiff
path: root/Build/source/texk/gsftopk
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-02-12 12:57:39 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-02-12 12:57:39 +0000
commit1b35617212ff97f97967393995abd4b77d0b0714 (patch)
treee5c0fedbe5e236f592a02855bad9d6dbc03b5d09 /Build/source/texk/gsftopk
parent48ccab09c4fc16fea0324771bbdfd3212aebabb2 (diff)
fix compilation with -DNO_DEBUG
git-svn-id: svn://tug.org/texlive/trunk@16986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/gsftopk')
-rw-r--r--Build/source/texk/gsftopk/ChangeLog5
-rw-r--r--Build/source/texk/gsftopk/gsftopk.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/Build/source/texk/gsftopk/ChangeLog b/Build/source/texk/gsftopk/ChangeLog
index ff307586803..e3735b857a3 100644
--- a/Build/source/texk/gsftopk/ChangeLog
+++ b/Build/source/texk/gsftopk/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-12 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * gsftopk.c: Add '#if defined(KPSE_DEBUG)' to allow compilation
+ with '-DNO_DEBUG'.
+
2009-11-07 Peter Breitenlohner <peb@mppmu.mpg.de>
* configure.ac, gsftopk.c: Require recent kpathsea version.
diff --git a/Build/source/texk/gsftopk/gsftopk.c b/Build/source/texk/gsftopk/gsftopk.c
index 4406a84a518..96a702d4415 100644
--- a/Build/source/texk/gsftopk/gsftopk.c
+++ b/Build/source/texk/gsftopk/gsftopk.c
@@ -369,7 +369,7 @@ static const struct option options[] = {
{"interpreter", 'i', True, &gspath, 0},
{"dosnames", 0, False, &dosnames, True},
{"quiet", 'q', False, &quiet, True},
-#ifdef KPATHSEA
+#if defined(KPATHSEA) && defined (KPSE_DEBUG)
{"debug", OPT_DBG,True, NULL, 0},
#endif
{"version", 'v', False, NULL, 0},
@@ -1513,7 +1513,7 @@ trim_bitmap(void)
height -= skip;
voff -= skip;
#if DEBUG
-#ifdef KPATHSEA
+#if defined(KPATHSEA) && defined (KPSE_DEBUG)
if (KPSE_DEBUG_P (GSPK_DEBUG_PK))
#endif
if (skip < 2 || skip > 3)
@@ -1532,7 +1532,7 @@ trim_bitmap(void)
}
height -= skip;
#if DEBUG
-#ifdef KPATHSEA
+#if defined(KPATHSEA) && defined (KPSE_DEBUG)
if (KPSE_DEBUG_P (GSPK_DEBUG_PK))
#endif
if (skip < 2 || skip > 3)
@@ -1552,7 +1552,7 @@ trim_bitmap(void)
}
++width;
#if DEBUG
-#ifdef KPATHSEA
+#if defined(KPATHSEA) && defined (KPSE_DEBUG)
if (KPSE_DEBUG_P (GSPK_DEBUG_PK))
#endif
if (skip < 2 || skip > 3)
@@ -1571,7 +1571,7 @@ trim_bitmap(void)
width -= skip;
hoff -= skip;
#if DEBUG
-#ifdef KPATHSEA
+#if defined(KPATHSEA) && defined (KPSE_DEBUG)
if (KPSE_DEBUG_P (GSPK_DEBUG_PK))
#endif
if (skip < 2 || skip > 3)
@@ -1680,7 +1680,7 @@ pk_rll_cvt(void)
}
#if DEBUG
-#ifdef KPATHSEA
+#if defined(KPATHSEA) && defined (KPSE_DEBUG)
if (KPSE_DEBUG_P (GSPK_DEBUG_BITMAP))
#endif
{
@@ -2083,7 +2083,7 @@ main(int argc, char **argv)
}
switch (opt->shortname) {
-#ifdef KPATHSEA
+#if defined(KPATHSEA) && defined (KPSE_DEBUG)
case OPT_DBG:
kpathsea_debug |= atoi(arg);
break;