Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae83f845 authored by Tim Murray's avatar Tim Murray
Browse files

Add guards to prevent typedefs when C++11 is available.

char32_t and char16_t are both defined in C++11.

Change-Id: I44fe8f4f05f230c18a1b77fa21b6a40c8f8ecc2d
parent 6b91fefd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22,8 +22,11 @@

extern "C" {

// Definitions exist in C++11
#if defined __cplusplus && __cplusplus < 201103L
typedef uint32_t char32_t;
typedef uint16_t char16_t;
#endif

// Standard string functions on char16_t strings.
int strcmp16(const char16_t *, const char16_t *);