Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.alt.net!news.kjsl.com!rahul.net!wasp.rahul.net!rahul.net!news.lightlink.com!news.iecc.com!nerds-end From: Gene Newsgroups: comp.compilers Subject: Re: C or Similar Preprocessor for General Use Date: Thu, 16 Jun 2011 19:03:14 -0700 (PDT) Organization: Compilers Central Lines: 7 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <11-06-027@comp.compilers> References: <11-06-026@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: gal.iecc.com 1308413392 76630 64.57.183.58 (18 Jun 2011 16:09:52 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Sat, 18 Jun 2011 16:09:52 +0000 (UTC) Keywords: macros Posted-Date: 18 Jun 2011 12:09:52 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: x330-a1.tempe.blueboxinc.net comp.compilers:153 As John says, M4 works fine under Windows. You can also install any of the several versions of gcc for Windows (see the FAQ) and use the -E option. It's not terribly hard to build a simple preprocessor with a scripting language like Perl. I have looked at mcpp in the past (see Source Forge). It looks pretty good and works on Windows. http://mcpp.sourceforge.net/download.html