Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On Solaris /usr/include/sys/isa_defs.h defines _LITTLE_ENDIAN or _BIG_ENDIAN
without any value.
Following is build error from Firefox where it's used:
gmake[1]: Entering directory '/scratch/firefox/obj-x86_64-pc-solaris2.11/gfx/angle/targets/angle_common'
/usr/bin/g++ -std=gnu++14 -o PMurHash.o -c -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/stl_wrappers -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/system_wrappers -include /scratch/firefox/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -D__NDK_FPABI__= -Dconstexpr14= -DANGLE_SKIP_DXGI_1_2_CHECK -DANGLE_ENABLE_DEBUG_ANNOTATIONS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DNOMINMAX -DNTDDI_VERSION=0x0A000000 -DUNICODE -D_ATL_NO_OPENGL -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SECURE_ATL -D_UNICODE -I/scratch/firefox/gfx/angle/targets/angle_common -I/scratch/firefox/obj-x86_64-pc-solaris2.11/gfx/angle/targets/angle_common -I/scratch/firefox/gfx/angle/checkout -I/scratch/firefox/gfx/angle/checkout/include -I/scratch/firefox/gfx/angle/checkout/out/gen -I/scratch/firefox/gfx/angle/checkout/out/gen/angle -I/scratch/firefox/gfx/angle/checkout/src -I/scratch/firefox/gfx/angle/checkout/src/common/third_party/base -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/include -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/include/nspr -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /scratch/firefox/obj-x86_64-pc-solaris2.11/mozilla-config.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -g -O -fno-omit-frame-pointer -msse2 -MD -MP -MF .deps/PMurHash.o.pp /scratch/firefox/gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp
/scratch/firefox/gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp:94:102: error: operator '&&' has no right operand
#if defined(LITTLE_ENDIAN) && LITTLE_ENDIAN==1 || defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN==1
^
gmake[1]: *** [/scratch/firefox/config/rules.mk:1047: PMurHash.o] Error 1