diff options
| author | David J. MacKenzie | 1995-07-26 17:54:50 +0000 |
|---|---|---|
| committer | David J. MacKenzie | 1995-07-26 17:54:50 +0000 |
| commit | aa42ddbe493986f54727866912103937eccbd01c (patch) | |
| tree | e8edb563298a4a5dd6ad41fb56e5d12d33144c86 /src | |
| parent | f4b728482eb09fbbc11e6e049014b90d77c06926 (diff) | |
| download | emacs-aa42ddbe493986f54727866912103937eccbd01c.tar.gz emacs-aa42ddbe493986f54727866912103937eccbd01c.zip | |
Move #define of bcopy to after #include <string.h>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/termcap.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/termcap.c b/src/termcap.c index bf16ed2824c..7be847503f0 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Work-alike for termcap, plus extra features. | 1 | /* Work-alike for termcap, plus extra features. |
| 2 | Copyright (C) 1985, 1986, 1993, 1994 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 86, 93, 94, 95 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This program is free software; you can redistribute it and/or modify | 4 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
| @@ -28,10 +28,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 28 | 28 | ||
| 29 | #else /* not HAVE_CONFIG_H */ | 29 | #else /* not HAVE_CONFIG_H */ |
| 30 | 30 | ||
| 31 | #if defined(HAVE_STRING_H) || defined(STDC_HEADERS) | ||
| 32 | #define bcopy(s, d, n) memcpy ((d), (s), (n)) | ||
| 33 | #endif | ||
| 34 | |||
| 35 | #ifdef STDC_HEADERS | 31 | #ifdef STDC_HEADERS |
| 36 | #include <stdlib.h> | 32 | #include <stdlib.h> |
| 37 | #include <string.h> | 33 | #include <string.h> |
| @@ -41,6 +37,11 @@ char *malloc (); | |||
| 41 | char *realloc (); | 37 | char *realloc (); |
| 42 | #endif | 38 | #endif |
| 43 | 39 | ||
| 40 | /* Do this after the include, in case string.h prototypes bcopy. */ | ||
| 41 | #if (defined(HAVE_STRING_H) || defined(STDC_HEADERS)) && !defined(bcopy) | ||
| 42 | #define bcopy(s, d, n) memcpy ((d), (s), (n)) | ||
| 43 | #endif | ||
| 44 | |||
| 44 | #ifdef HAVE_UNISTD_H | 45 | #ifdef HAVE_UNISTD_H |
| 45 | #include <unistd.h> | 46 | #include <unistd.h> |
| 46 | #endif | 47 | #endif |