Ticket #5892: haiku-clang-build-fixes.patch

File haiku-clang-build-fixes.patch, 5.0 KB (added by kaliber, 14 years ago)

updated patch

  • src/preferences/cpufrequency/PreferencesWindow.h

     
    362362template<typename Preferences>
    363363PreferencesWindow<Preferences>::~PreferencesWindow()
    364364{
    365     SetWindowPosition(Frame().LeftTop());
     365    PreferencesStorage<Preferences>::SetWindowPosition(Frame().LeftTop());
    366366}
    367367
    368368
  • src/apps/soundrecorder/RecorderWindow.cpp

     
    416416        //  Input selection lists all available physical inputs that produce
    417417        //  buffers with B_MEDIA_RAW_AUDIO format data.
    418418        popup = new BPopUpMenu("Input");
    419         int max_input_count = 64;
     419        const int max_input_count = 64;
    420420        dormant_node_info dni[max_input_count];
    421421
    422422        int32 real_count = max_input_count;
  • src/add-ons/translators/rtf/Stack.h

     
    88
    99
    1010#include <SupportDefs.h>
     11#include <stdlib.h>
    1112
    1213
    1314template<class T> class Stack {
  • src/libs/print/libprint/PackBits.cpp

     
    1414#include "PackBits.h"
    1515
    1616#if (!__MWERKS__ || defined(MSIPL_USING_NAMESPACE))
     17#include <iostream>
    1718using namespace std;
    1819#else
    1920#define std
  • src/kits/app/MessageAdapter.cpp

     
    421421        if (field->count == 1)
    422422            flags |= R5_FIELD_FLAG_SINGLE_ITEM;
    423423        // ToDo: we don't really know the data size now (padding missing)
     424#if 0
    424425        if (field->data_size <= 255 && field->count <= 255)
    425             ;//flags |= R5_FIELD_FLAG_MINI_DATA;
     426            flags |= R5_FIELD_FLAG_MINI_DATA;
     427#endif
    426428        if (field->flags & FIELD_FLAG_FIXED_SIZE)
    427429            flags |= R5_FIELD_FLAG_FIXED_SIZE;
    428430
  • headers/posix/fenv.h

     
    11#ifndef _FENV_H
    22#define _FENV_H
    33
    4 #if defined(_X86_)
     4#if defined(__INTEL__)
    55#  include <arch/x86/fenv.h>
    66#elif defined(__ARM__)
    77#  include <arch/arm/fenv.h>
  • headers/posix/math.h

     
    2929
    3030#define __HUGE_VALF_v   0x7f800000L
    3131#define __huge_valf_t   union { unsigned char __c[4]; long __l; float __f; }
     32#ifdef __clang__
     33static __huge_valf_t __huge_valf = { {__HUGE_VALF_v} };
     34#define HUGE_VALF       (__huge_valf.__f)
     35#else
    3236#define HUGE_VALF       (((__huge_valf_t) { __l: __HUGE_VALF_v }).__f)
     37#endif
    3338
    3439/* TODO: define HUGE_VALL for long doubles */
    3540
  • headers/private/kernel/util/MultiHashTable.h

     
    143143                previous = HashTable::_Link(previous));
    144144
    145145        if (previous) {
    146             _Link(value) = _Link(previous);
    147             _Link(previous) = value;
     146            HashTable::_Link(value) = HashTable::_Link(previous);
     147            HashTable::_Link(previous) = value;
    148148        } else {
    149             _Link(value) = table[index];
     149            HashTable::_Link(value) = table[index];
    150150            table[index] = value;
    151151        }
    152152    }
     
    165165            for (size_t i = 0; i < HashTable::fTableSize; i++) {
    166166                ValueType *bucket = HashTable::fTable[i];
    167167                while (bucket) {
    168                     ValueType *next = _Link(bucket);
     168                    ValueType *next = HashTable::_Link(bucket);
    169169                    _Insert(newTable, newSize, bucket);
    170170                    bucket = next;
    171171                }
  • headers/private/shared/OpenHashTable.h

     
    447447{
    448448    Element *element = Add();
    449449    if (element)
    450         element.Adopt(newElement);
     450        element->Adopt(newElement);
    451451    return element;
    452452}
    453453
  • headers/private/shared/HashMap.h

     
    458458
    459459// _FindElement
    460460template<typename Key, typename Value>
    461 struct HashMap<Key, Value>::Element *
     461typename HashMap<Key, Value>::Element *
    462462HashMap<Key, Value>::_FindElement(const Key& key) const
    463463{
    464464    Element* element = fTable.FindFirst(key.GetHashCode());