Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Compiling and linking code from different places in the file system Date: Fri, 09 Mar 2018 10:10:48 -0800 Organization: None to speak of Lines: 29 Message-ID: References: <6oSnC.178019$eQ7.108635@fx46.am4> <87o9k055d2.fsf@bsb.me.uk> <13a67039-e46b-4337-a1a3-058210e55b6e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="bb2cdd46fc14bf16d0e6a78dcd8fc907"; logging-data="14465"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xfJ6Fbav2EG6pTt4s4nFY" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:B4VzDbRzoYIeNl0mqR3hwWIJC+s= sha1:N40qUdGJBiNtmC9wtKFPCjqhV14= Xref: csiph.com comp.lang.c:127570 David Brown writes: > On 08/03/18 22:55, Keith Thompson wrote: [...] >> If you need to support non-two's-complement systems you might consider >> something like: >> >> #if INT_MIN == -2147483647-1 >> typedef int int32_t; >> typedef int32_t signed32_t; >> #elif INT_MIN == -2147483647-1 > > Should that not be: > > #elif INT_MIN == -2147483647 > > ? Yes thanks. > >> typedef int signed32_t; >> ... >> #endif [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"