diff options
| author | Eli Zaretskii | 2011-01-31 21:36:08 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-01-31 21:36:08 +0200 |
| commit | 70b0d280eb5cfdf103603fb289064710ae7cd680 (patch) | |
| tree | 39963bbb02985fa36b64cf93dda48e8efbd7823a /nt | |
| parent | 1dc4075fa8809805aed5092e93e225e889725c94 (diff) | |
| download | emacs-70b0d280eb5cfdf103603fb289064710ae7cd680.tar.gz emacs-70b0d280eb5cfdf103603fb289064710ae7cd680.zip | |
Fix the MS-Windows build broken by 2011-01-30T23:34:18Z!eggert@cs.ucla.edu and 2011-01-31T08:15:13Z!eggert@cs.ucla.edu.
lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/strftime.$(O) and
$(BLD)/time_r.$(O).
($(BLD)/dtoastr.$(O)): Depend on $(EMACS_ROOT)/src/s/ms-w32.h and
$(EMACS_ROOT)/src/m/intel386.h.
($(BLD)/strftime.$(O)):
($(BLD)/time_r.$(O)): Define prerequisites.
src/makefile.w32-in (OBJ2): Remove strftime.$(O).
($(BLD)/strftime.$(O)): Remove prerequisites.
lib-src/makefile.w32-in (VERSION): Don't define, defined on nt/config.nt.
(ECLIENT_CFLAGS): Remove -DVERSION.
($(BLD)/emacsclient.$(O)): Don't depend on makefile.w32-in.
nt/config.nt (VERSION): Uncomment definition.
(restrict): Define.
nt/inc/stdbool.h: New file.
admin/admin.el (set-version): Remove lib-src/makefile.w32-in. Add
nt/config.nt.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/config.nt | 14 | ||||
| -rw-r--r-- | nt/inc/stdbool.h | 16 |
3 files changed, 29 insertions, 5 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 355c7e83dab..db73491718f 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-01-31 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * inc/stdbool.h: New file. | ||
| 4 | |||
| 1 | 2011-01-29 Eli Zaretskii <eliz@gnu.org> | 5 | 2011-01-29 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake) | 7 | * makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake) |
diff --git a/nt/config.nt b/nt/config.nt index 53d89701c69..d612a417f4d 100644 --- a/nt/config.nt +++ b/nt/config.nt | |||
| @@ -305,13 +305,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 305 | /* Name of package */ | 305 | /* Name of package */ |
| 306 | #define PACKAGE "emacs" | 306 | #define PACKAGE "emacs" |
| 307 | 307 | ||
| 308 | /* FIXME: This is defined by the various makefile.w32-in files for | ||
| 309 | now. Revisit if/when VERSION from config.h is used by any | ||
| 310 | Makefile.in files. */ | ||
| 311 | #if 0 | ||
| 312 | /* Version number of package */ | 308 | /* Version number of package */ |
| 313 | #define VERSION "24.0.50" | 309 | #define VERSION "24.0.50" |
| 314 | #endif | ||
| 315 | 310 | ||
| 316 | /* Define to `__inline__' or `__inline' if that's what the C compiler | 311 | /* Define to `__inline__' or `__inline' if that's what the C compiler |
| 317 | calls it, or to nothing if 'inline' is not supported under any name. */ | 312 | calls it, or to nothing if 'inline' is not supported under any name. */ |
| @@ -319,6 +314,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 319 | #undef inline | 314 | #undef inline |
| 320 | #endif | 315 | #endif |
| 321 | 316 | ||
| 317 | /* Define to the equivalent of the C99 'restrict' keyword, or to | ||
| 318 | nothing if this is not supported. Do not define if restrict is | ||
| 319 | supported directly. */ | ||
| 320 | #ifdef __GNUC__ | ||
| 321 | # define restrict __restrict__ | ||
| 322 | #else | ||
| 323 | # define restrict | ||
| 324 | #endif | ||
| 325 | |||
| 322 | /* Define as a marker that can be attached to declarations that might not | 326 | /* Define as a marker that can be attached to declarations that might not |
| 323 | be used. This helps to reduce warnings, such as from | 327 | be used. This helps to reduce warnings, such as from |
| 324 | GCC -Wunused-parameter. */ | 328 | GCC -Wunused-parameter. */ |
diff --git a/nt/inc/stdbool.h b/nt/inc/stdbool.h new file mode 100644 index 00000000000..521291fdd03 --- /dev/null +++ b/nt/inc/stdbool.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef _NT_STDBOOL_H_ | ||
| 2 | #define _NT_STDBOOL_H_ | ||
| 3 | /* | ||
| 4 | * stdbool.h exists in GCC, but not in MSVC. | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifdef __GNUC__ | ||
| 8 | # include_next <stdbool.h> | ||
| 9 | #else | ||
| 10 | # define _Bool signed char | ||
| 11 | # define bool _Bool | ||
| 12 | # define false 0 | ||
| 13 | # define true 1 | ||
| 14 | #endif | ||
| 15 | |||
| 16 | #endif /* _NT_STDBOOL_H_ */ | ||