delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2013/02/01/19:22:17

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1/OP2x76STOi73B2bTzSu3uPI558QlYcs50ccFXAJ
8UVIX7KXOGM8i1
Message-ID: <510C5916.6030502@gmx.de>
Date: Sat, 02 Feb 2013 01:08:54 +0100
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: stdint.h inclusion by inttypes.h
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

While I was trying to port unrtf I noted that inttypes.h does not include
stdint.h.  Any objection if the patch below is committed?

Regards,
Juan M. Guerrero



diff -aprNU5 djgpp.orig/include/inttypes.h djgpp/include/inttypes.h
--- djgpp.orig/include/inttypes.h    2012-09-23 07:49:10 +0000
+++ djgpp/include/inttypes.h    2013-02-02 00:34:14 +0000
@@ -1,5 +1,6 @@
+/* Copyright (C) 2013 DJ Delorie, see COPYING.DJ for details */
  /* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */
  /* Copyright (C) 2002 DJ Delorie, see COPYING.DJ for details */
  #include <stdint.h>

  #ifndef __dj_inttypes__h_
@@ -9,10 +10,12 @@
  extern "C" {
  #endif

  #ifndef __dj_ENFORCE_ANSI_FREESTANDING

+#include <stdint.h>
+
  #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
    || !defined(__STRICT_ANSI__) || defined(__cplusplus)

  /* ANSI/ISO C99 says these should not be visible in C++ unless
     explicitly requested.  */

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019