[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

C99 code in utf8proc.h

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 28 Feb 2014 19:15:16 +0000

The introduction of utf8proc in libsvn_subr has brought this code in

#ifdef _MSC_VER
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
#ifdef _WIN64
#define ssize_t __int64
#define ssize_t int
typedef unsigned char bool;
enum {false, true};
#include <stdbool.h>
#include <inttypes.h>

stdbool.h and inttypes.h are from C99 and are not part of C89 so a
strictly conforming C89 compiler rejects this code. If we were to use
the Windows code, typdef and enum, on all platforms we could remove the
C99 code. We could relax our C89 requirements but it seems a bit silly
to do it for something as trivial as this.

Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-02-28 20:15:51 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.