diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-02 15:02:11 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-02 15:02:11 +0000 |
commit | ac8cfd7b930d57b6526415a8e67204d207022bda (patch) | |
tree | 1f3a0a32860aade97bf67308cd65851967143f88 /Build/source/texk/dvidvi | |
parent | bcaa6454cc914b0d28284675818f73b908e9adea (diff) |
avoid compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@13581 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvidvi')
-rw-r--r-- | Build/source/texk/dvidvi/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvidvi/dvidvi.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/Build/source/texk/dvidvi/ChangeLog b/Build/source/texk/dvidvi/ChangeLog index eae98bf51ec..120a7758252 100644 --- a/Build/source/texk/dvidvi/ChangeLog +++ b/Build/source/texk/dvidvi/ChangeLog @@ -1,3 +1,8 @@ +2009-06-02 Peter Breitenlohner <peb@mppmu.mpg.de> + + * dvidvi.c: always include <stdlib.h>, to avoid implicit + declaration of calloc, exit, free, and malloc. + 2009-05-27 Peter Breitenlohner <peb@mppmu.mpg.de> Adapt to TL2009 build system. diff --git a/Build/source/texk/dvidvi/dvidvi.c b/Build/source/texk/dvidvi/dvidvi.c index 5d9a4948a39..0ff035f1cc5 100644 --- a/Build/source/texk/dvidvi/dvidvi.c +++ b/Build/source/texk/dvidvi/dvidvi.c @@ -38,13 +38,11 @@ "Improved from 1.0 to 1.1, 1994, Markus Kohm\n" #define STRINGSIZE (500L) /* maximum number of strings in program */ -#ifdef WIN32 +#ifndef VMS #include <stdlib.h> +#ifdef WIN32 #include <malloc.h> #endif -void error(char *); - -#ifndef VMS #include <stdio.h> #include <string.h> #else /* VMS */ @@ -53,6 +51,8 @@ void error(char *); #endif /* VMS */ #define MAXPPERP (32) +void error(char *); + /* defines READBIN, WRITEBIN, PATHSEP and IS_DIR_SEP*/ #ifdef HAVE_CONFIG_H |