aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cmacexp.el
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2001-09-02 17:29:14 +0000
committerEli Zaretskii <[email protected]>2001-09-02 17:29:14 +0000
commit883310a73162f2e7f85aefbb98d0b60d4a676589 (patch)
tree6b7688891888c5155d3baca2cb58af4f8e859d10 /lisp/progmodes/cmacexp.el
parent0b61e47e946c3bc7c4fc489f23684bf67a321a64 (diff)
(c-macro-preprocessor): Use "gcc -E" for
MS-DOS, since cpp might not be available.
Diffstat (limited to 'lisp/progmodes/cmacexp.el')
-rw-r--r--lisp/progmodes/cmacexp.el6
1 files changed, 4 insertions, 2 deletions
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)