autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to write directly to config.h from configure?


From: Jeffrey Walton
Subject: Re: How to write directly to config.h from configure?
Date: Thu, 26 Jul 2018 13:26:50 -0400

On Thu, Jul 26, 2018 at 1:20 PM, Warren Young <address@hidden> wrote:
> On Jul 26, 2018, at 9:36 AM, Jeffrey Walton <address@hidden> wrote:
>>
>>    cat << EOT >> config.h
>>      typedef unsigned char byte;
>>      typedef unsigned short word16;
>>      typedef unsigned int word32;
>>    EOT
>
> You’re reinventing C99’s stdint.h here.  Unless you still must build on C89 
> or older compilers, you should just switch.
>
> I get supporting old compilers — I often need to support C++ compilers 10 
> years old or more — but C89 should be safe to drop in most projects by now.

Yeah, we changed minimum requirements to C++03 recently (from C++98).
The problem is we risk breaking user code, especially on Windows
platforms where <stdint.h> or <cstdint> did not arrive until about
2010.

Breaking user code means mailing list questions and bug reports. I
prefer a silent and dark cockpits so I think its best to leave the
cruft.

Jeff



reply via email to

[Prev in Thread] Current Thread [Next in Thread]