Fixed compile of makeidx for MinGW

This commit is contained in:
sjborley 2005-05-19 15:21:59 +00:00
parent 7271c3ce01
commit 8cdf0e148d
2 changed files with 9 additions and 8 deletions

View File

@ -3,8 +3,11 @@
SUBDIRS = misc maths frontend spicelib include @XSPICEDIR@ @CIDERDIR@
DIST_SUBDIRS = misc maths frontend spicelib include xspice ciderlib
bin_PROGRAMS = ngspice ngnutmeg nghelp ngsconvert ngproc2mod ngmultidec \
makeidx
bin_PROGRAMS = ngspice ngnutmeg nghelp makeidx
if !WINDOWS
bin_PROGRAMS += ngsconvert ngproc2mod ngmultidec
endif
EXTRA_DIST = ngspice.txt ngspice.idx setplot spectrum \
devload devaxis ciderinit winmain.c
@ -157,7 +160,6 @@ if !WINDOWS
ngsconvert_SOURCES = ngsconvert.c
ngsconvert_LDADD = \
frontend/libfte.a \
frontend/parser/libparser.a \
@ -173,7 +175,6 @@ ngproc2mod_LDADD = \
misc/libmisc.a
## multidec:
ngmultidec_SOURCES = ngmultidec.c
@ -181,6 +182,8 @@ ngmultidec_SOURCES = ngmultidec.c
ngmultidec_LDADD = \
maths/sparse/libsparse.a \
misc/libmisc.a
endif !WINDOWS
## makeidx:
@ -192,8 +195,6 @@ ngspice.idx: makeidx
./makeidx $(srcdir)/ngspice.txt
endif !WINDOWS
## General Includes and libraries:

View File

@ -4,13 +4,13 @@ Copyright 1990 Regents of the University of California. All rights reserved.
/* from FILENAME.txt, make FILENAME.idx */
#include "ngspice.h"
#include <stdio.h>
#include <string.h>
#include "cpdefs.h"
#include "hlpdefs.h"
#include "suffix.h"
#define BSIZE_SP 512
int
main(argc, argv)