• Khem Raj's avatar
    Fix build with clang on big-endian targets (#4440) · 28920aff
    Khem Raj authored
    * flatbuffers: Move EndianSwap template to flatbuffers/base.h
    
    Clang complains
    call to function 'EndianSwap' that is neither visible in the template definition nor found by argument-dependent lookup
         return EndianSwap(t);
    
    This seems to be due to limitation of two-phase lookup of dependent names in template definitions
    
    Its not being found using associated namespaces therefore
    it has to be made visible at the template definition site as well
    Signed-off-by: 's avatarKhem Raj <raj.khem@gmail.com>
    
    * use __builtin_bswap16 when building with clang
    
    clang pretends to be gcc 4.2.0 and therefore the code does
    not use __builtin_bswap16 but tries to synthesize it
    Signed-off-by: 's avatarKhem Raj <raj.khem@gmail.com>
    28920aff
Name
Last commit
Last update
.github Loading commit data...
CMake Loading commit data...
android Loading commit data...
biicode Loading commit data...
docs Loading commit data...
go Loading commit data...
grpc Loading commit data...
include/flatbuffers Loading commit data...
java/com/google/flatbuffers Loading commit data...
js Loading commit data...
net/FlatBuffers Loading commit data...
php Loading commit data...
python Loading commit data...
reflection Loading commit data...
samples Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
appveyor.yml Loading commit data...
biicode.conf Loading commit data...
composer.json Loading commit data...
package.json Loading commit data...
pom.xml Loading commit data...
readme.md Loading commit data...