Ticket #5892: haiku-clang-build-fixes.patch
File haiku-clang-build-fixes.patch, 5.0 KB (added by , 14 years ago) |
---|
-
src/preferences/cpufrequency/PreferencesWindow.h
362 362 template<typename Preferences> 363 363 PreferencesWindow<Preferences>::~PreferencesWindow() 364 364 { 365 SetWindowPosition(Frame().LeftTop());365 PreferencesStorage<Preferences>::SetWindowPosition(Frame().LeftTop()); 366 366 } 367 367 368 368 -
src/apps/soundrecorder/RecorderWindow.cpp
416 416 // Input selection lists all available physical inputs that produce 417 417 // buffers with B_MEDIA_RAW_AUDIO format data. 418 418 popup = new BPopUpMenu("Input"); 419 int max_input_count = 64;419 const int max_input_count = 64; 420 420 dormant_node_info dni[max_input_count]; 421 421 422 422 int32 real_count = max_input_count; -
src/add-ons/translators/rtf/Stack.h
8 8 9 9 10 10 #include <SupportDefs.h> 11 #include <stdlib.h> 11 12 12 13 13 14 template<class T> class Stack { -
src/libs/print/libprint/PackBits.cpp
14 14 #include "PackBits.h" 15 15 16 16 #if (!__MWERKS__ || defined(MSIPL_USING_NAMESPACE)) 17 #include <iostream> 17 18 using namespace std; 18 19 #else 19 20 #define std -
src/kits/app/MessageAdapter.cpp
421 421 if (field->count == 1) 422 422 flags |= R5_FIELD_FLAG_SINGLE_ITEM; 423 423 // ToDo: we don't really know the data size now (padding missing) 424 #if 0 424 425 if (field->data_size <= 255 && field->count <= 255) 425 ;//flags |= R5_FIELD_FLAG_MINI_DATA; 426 flags |= R5_FIELD_FLAG_MINI_DATA; 427 #endif 426 428 if (field->flags & FIELD_FLAG_FIXED_SIZE) 427 429 flags |= R5_FIELD_FLAG_FIXED_SIZE; 428 430 -
headers/posix/fenv.h
1 1 #ifndef _FENV_H 2 2 #define _FENV_H 3 3 4 #if defined(_ X86_)4 #if defined(__INTEL__) 5 5 # include <arch/x86/fenv.h> 6 6 #elif defined(__ARM__) 7 7 # include <arch/arm/fenv.h> -
headers/posix/math.h
29 29 30 30 #define __HUGE_VALF_v 0x7f800000L 31 31 #define __huge_valf_t union { unsigned char __c[4]; long __l; float __f; } 32 #ifdef __clang__ 33 static __huge_valf_t __huge_valf = { {__HUGE_VALF_v} }; 34 #define HUGE_VALF (__huge_valf.__f) 35 #else 32 36 #define HUGE_VALF (((__huge_valf_t) { __l: __HUGE_VALF_v }).__f) 37 #endif 33 38 34 39 /* TODO: define HUGE_VALL for long doubles */ 35 40 -
headers/private/kernel/util/MultiHashTable.h
143 143 previous = HashTable::_Link(previous)); 144 144 145 145 if (previous) { 146 _Link(value) =_Link(previous);147 _Link(previous) = value;146 HashTable::_Link(value) = HashTable::_Link(previous); 147 HashTable::_Link(previous) = value; 148 148 } else { 149 _Link(value) = table[index];149 HashTable::_Link(value) = table[index]; 150 150 table[index] = value; 151 151 } 152 152 } … … 165 165 for (size_t i = 0; i < HashTable::fTableSize; i++) { 166 166 ValueType *bucket = HashTable::fTable[i]; 167 167 while (bucket) { 168 ValueType *next = _Link(bucket);168 ValueType *next = HashTable::_Link(bucket); 169 169 _Insert(newTable, newSize, bucket); 170 170 bucket = next; 171 171 } -
headers/private/shared/OpenHashTable.h
447 447 { 448 448 Element *element = Add(); 449 449 if (element) 450 element .Adopt(newElement);450 element->Adopt(newElement); 451 451 return element; 452 452 } 453 453 -
headers/private/shared/HashMap.h
458 458 459 459 // _FindElement 460 460 template<typename Key, typename Value> 461 structHashMap<Key, Value>::Element *461 typename HashMap<Key, Value>::Element * 462 462 HashMap<Key, Value>::_FindElement(const Key& key) const 463 463 { 464 464 Element* element = fTable.FindFirst(key.GetHashCode());