Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 01 Jun 2011 13:10:31 -0500 Message-ID: <4DE68098.44E1@mindspring.com> Date: Wed, 01 Jun 2011 14:10:32 -0400 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: C programming in 2011 References: <4dde5e06$0$20221$426a34cc@news.free.fr> <4dde7054$0$5886$426a74cc@news.free.fr> <663f0b2d-4a9a-4a62-bb7c-05202b8b572e@m10g2000yqd.googlegroups.com> <9879610a-8794-4ed7-8553-5c37716fc662@b1g2000yql.googlegroups.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.223.32 X-Trace: sv3-tjtzPnAu3nD+AV98UqbbRVTwTJkQ17/KUISegnKwj5QMIfmMAXWfEH0MK+3YOcBrizmuUYy3pn0yNfB!fCig992BsvDGoN1EqVYF9jMOUboyn07U/8lgr6asONvvlDClxIYWTFZhBl/jiZ3UAC8rvTnZQLWg!SGxAL5cYNQ== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2101 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:5218 Noob wrote: > > J. J. Farrell wrote: > > If someone is choosing to write code which is portable to all > > possible legal C implementations, they have to allow for it. > Would this work > (I'm uncertain about pre-processor arithmetic type promotion) > > #if UINT_MAX <= INT_MAX > #error UNSUPPORTED PLATFORM !!! > #endif You could change that to #if UINT_MAX == INT_MAX If (UINT_MAX < INT_MAX) is true, then it's not C. -- pete