google / farmhash

Automatically exported from code.google.com/p/farmhash
MIT License
626 stars 99 forks source link

Fix build for MinGW compiler #32

Closed mattn closed 5 years ago

mattn commented 5 years ago

Fixing compilation error with mingw compiler

farmhash.cc:181:10: fatal error: byteswap.h: No such file or directory
 #include <byteswap.h>
          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:618: farmhash.lo] Error 1
make[2]: Leaving directory '/c/dev/farmhash/src'
make[1]: *** [Makefile:462: all-recursive] Error 1
make[1]: Leaving directory '/c/dev/farmhash'
make: *** [Makefile:372: all] Error 2

This fix will make be possible to compile TensorFlow Lite with mingw compiler.

https://github.com/tensorflow/tensorflow/pull/26040#issuecomment-489428268