diff options
author | Eli Zaretskii <[email protected]> | 2001-09-02 17:29:14 +0000 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2001-09-02 17:29:14 +0000 |
commit | 883310a73162f2e7f85aefbb98d0b60d4a676589 (patch) | |
tree | 6b7688891888c5155d3baca2cb58af4f8e859d10 | |
parent | 0b61e47e946c3bc7c4fc489f23684bf67a321a64 (diff) |
(c-macro-preprocessor): Use "gcc -E" for
MS-DOS, since cpp might not be available.
-rw-r--r-- | lisp/ChangeLog | 3 | ||||
-rw-r--r-- | lisp/progmodes/cmacexp.el | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 099da8d1dc..fd3907897d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2001-09-02 Eli Zaretskii <[email protected]> + * progmodes/cmacexp.el (c-macro-preprocessor): Use "gcc -E" for + MS-DOS, since cpp might not be available. + * menu-bar.el (menu-bar-edit-menu) <yank-menu, yank>: Mention "yank" in the help-echo text. Suggested by Pavel Jan,Bm(Bk diff --git a/lisp/progmodes/cmacexp.el b/lisp/progmodes/cmacexp.el index a701da6e80..a42df869df 100644 --- a/lisp/progmodes/cmacexp.el +++ b/lisp/progmodes/cmacexp.el @@ -108,8 +108,10 @@ :group 'c-macro) (defcustom c-macro-preprocessor - ;; Cannot rely on standard directory on MS-DOS to find CPP. - (cond ((eq system-type 'ms-dos) "cpp -C") + ;; Cannot rely on standard directory on MS-DOS to find CPP. In + ;; fact, cannot rely on having cpp.exe, either, in latest GCC + ;; versions. + (cond ((eq system-type 'ms-dos) "gcc -E -C -o - -") ;; Solaris has it in an unusual place. ((and (string-match "^[^-]*-[^-]*-\\(solaris\\|sunos5\\)" system-configuration) |