From f12ef5ebfd680c9aeeab106d0de5966ee3bf2075 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Tue, 22 Aug 2000 22:19:26 +0000 Subject: [PATCH] [USE_CRT_DLL]: Remove unnecessary extern, which screws up dllimport attributes. --- src/editfns.c | 3 +++ src/fileio.c | 2 ++ src/floatfns.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/editfns.c b/src/editfns.c index eab21a4e82a..b4044d2bb78 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -49,7 +49,10 @@ Boston, MA 02111-1307, USA. */ #define NULL 0 #endif +#ifndef USE_CRT_DLL extern char **environ; +#endif + extern Lisp_Object make_time P_ ((time_t)); extern size_t emacs_strftimeu P_ ((char *, size_t, const char *, const struct tm *, int)); diff --git a/src/fileio.c b/src/fileio.c index 38a605ad12f..b5b9213d895 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -65,8 +65,10 @@ Boston, MA 02111-1307, USA. */ #include #ifndef vax11c +#ifndef USE_CRT_DLL extern int errno; #endif +#endif #ifdef APOLLO #include diff --git a/src/floatfns.c b/src/floatfns.c index d6cbb876e37..db1c3a7231e 100644 --- a/src/floatfns.c +++ b/src/floatfns.c @@ -107,8 +107,10 @@ extern double logb (); #ifdef FLOAT_CHECK_ERRNO # include +#ifndef USE_CRT_DLL extern int errno; #endif +#endif /* Avoid traps on VMS from sinh and cosh. All the other functions set errno instead. */ -- 2.39.2