# HG changeset patch # User Eli Zaretskii # Date 999451620 0 # Node ID ed83c694507e24b3456249f009edcfc95e2186a3 # Parent b2693c0914e45c2846641fe947a4c02d03a24e03 (c-macro-preprocessor): Use "gcc -E" for MS-DOS, since cpp might not be available. diff -r b2693c0914e4 -r ed83c694507e lisp/progmodes/cmacexp.el --- a/lisp/progmodes/cmacexp.el Sun Sep 02 16:30:20 2001 +0000 +++ b/lisp/progmodes/cmacexp.el Sun Sep 02 17:27:00 2001 +0000 @@ -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)