-Sat Mar 18 18:44:03 1995 John Gilmore (gnu at toad.com)
+Thu Mar 16 19:57:20 1995 Keith Vetter (keithv@fusion.com)
- * com_err.c, com_err.h: Use HAVE_STDARG_H, not STDARG_PROTOTYPES.
- * configure.in: Use AC_CHECK_HEADERS(stdarg.h), not CHECK_STDARG.
+ * com_err.c: added missing INTERFACE on a prototype.
+ * com_err.h: added _WINDOWS as an equivalent to __STDC__ since this
+ file gets included by windows programs in which __STDC__ isn't defined.
+ * makefile.in: added xxx-mac targets to mimic xxx-unix, and added
+ copying com_err.h to src\include for the PC.
Wed Mar 16 17:30:00 1995 Keith Vetter (keithv@fusion.com)
all:: all-$(WHAT)
all-windows: com_err.obj error_message.obj et_name.obj
+ copy com_err.h $(BUILDTOP)\include
#
# what to build...
all-unix:: compile_et includes
+all-mac:: compile_et includes
+
# The real compile_et just isn't portable. (But then again, anything using
# lex and yacc isn't portable by definition. :-( )
#
clean-unix::
$(RM) compile_et compile_et.o error_table.o
+clean-mac::
+ $(RM) compile_et compile_et.o error_table.o
+
depend::
install:: com_err.h
## install_library_target(com_err,$(LIBOBJS),$(LINTFILES),)
all-unix:: libcom_err.a
+all-mac:: libcom_err.a
+
libcom_err.a: $(LIBOBJS)
$(ARCHIVE) $@ $(LIBOBJS)
$(RANLIB) $@
$(RM) libcom_err.a
$(RM) $(LIBOBJS)
+clean-mac::
+ $(RM) libcom_err.a
+ $(RM) $(LIBOBJS)
+
install::
$(INSTALLLIB) libcom_err.a $(DESTDIR)$(LIBDIR)/libcom_err.a
$(CHMOD) 644 $(DESTDIR)$(LIBDIR)/libcom_err.a
$(CHMOD) 444 $(DESTDIR)$(LIBDIR)/libcom_err.a
##
-clean-unix::
+clean-unix:: clean-files
+
+clean-mac:: clean-files
+
+clean-files::
rm -f *~ \#* *.bak \
*.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
*.cp *.fn *.ky *.log *.pg *.tp *.vr \
* directly.
*/
#ifdef __STDC__
-extern char const *error_message (long);
+extern char const * INTERFACE error_message (long);
#else
-extern char *error_message ();
+extern char * INTERFACE error_message ();
#endif
static void
#else
fputs (errbuf, stderr);
fflush(stderr);
-#endif
+#endif
}
#ifdef __STDC__
#ifndef HAVE_STDARG_H
/* End-user programs may need this -- oh well */
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_WINDOWS)
#define HAVE_STDARG_H 1
#endif
#endif
#endif
#endif
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_WINDOWS)
/* ANSI C -- use prototypes etc */
extern void INTERFACE_C com_err (const char *, long, const char *, ...);
extern char const * INTERFACE error_message (long);