summaryrefslogtreecommitdiff
path: root/src/devices/grodvi
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-04-20 13:34:56 +0000
committerwlemb <wlemb>2001-04-20 13:34:56 +0000
commitf874b9a4016a8ce490ecccfee92e4edeaf316a7d (patch)
tree069036aa4da850be22b7171f03d5966dd7070d1c /src/devices/grodvi
parent92c8fbd691fccf1796420251c5b2978bcd748393 (diff)
downloadgroff-f874b9a4016a8ce490ecccfee92e4edeaf316a7d.tar.gz
`Version_string' as C++ object was not visible to linker from C
object files. Add `const' to `Version_string'. * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc (scanArguments), src/preproc/refer/refer.cc (main), src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc (main), src/devices/grohtml/post-html.cc (main), src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc (main), src/utils/hpftodit/hpftodit.cc (main), src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc (main), src/utils/addftinfo/addftinfo.cc (main): Implement it. * src/roff/groff/pipeline.c: Add _UWIN. * src/include/nonposix.h: Ditto. * src/include/lib.h: Use HAVE_STRERROR. * src/roff/groff/pipeline.c: Ditto. * src/preproc/html/pre-html.cc: Remove declaration of `strerror'. * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'. * src/utils/pfbtops/pfbtops.c: Add copyright notice. * win32-diffs: Updated. * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
Diffstat (limited to 'src/devices/grodvi')
-rw-r--r--src/devices/grodvi/dvi.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/grodvi/dvi.cc b/src/devices/grodvi/dvi.cc
index ec227472..b5b7c49d 100644
--- a/src/devices/grodvi/dvi.cc
+++ b/src/devices/grodvi/dvi.cc
@@ -22,6 +22,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "driver.h"
#include "nonposix.h"
+extern "C" const char *Version_string;
+
#define DEFAULT_LINEWIDTH 40
static int linewidth = DEFAULT_LINEWIDTH;
@@ -863,7 +865,6 @@ int main(int argc, char **argv)
switch(c) {
case 'v':
{
- extern const char *Version_string;
printf("GNU grodvi (groff) version %s\n", Version_string);
exit(0);
break;