Ticket #54300: clang_char16_t.patch

File clang_char16_t.patch, 1022 bytes (added by jjstickel (Jonathan Stickel), 7 years ago)
  • libqalculate/Calculator.cc

    diff -ur libqalculate-0.9.12/libqalculate/Calculator.cc libqalculate-0.9.12_macports/libqalculate/Calculator.cc
    old new  
    2323#include "Prefix.h"
    2424#include "Number.h"
    2525
    26 #if (defined(__clang__) && !defined char16_t)
    27 typedef __CHAR16_TYPE__ char16_t;
    28 #endif
    29 
    3026#include <locale.h>
    3127#include <libxml/xmlmemory.h>
    3228#include <libxml/parser.h>
  • libqalculate/DataSet.cc

    diff -ur libqalculate-0.9.12/libqalculate/DataSet.cc libqalculate-0.9.12_macports/libqalculate/DataSet.cc
    old new  
    1313
    1414#include "DataSet.h"
    1515
    16 #if (defined(__clang__) && !defined char16_t)
    17 typedef __CHAR16_TYPE__ char16_t;
    18 #endif
    19 
    2016#include "util.h"
    2117#include "Calculator.h"
    2218#include "MathStructure.h"