aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/python
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com>2018-06-30 19:07:36 -0700
committerGravatar Yong Tang <yong.tang.github@outlook.com>2018-08-08 19:38:39 +0000
commit07ad8e36896f8c9a787b10927d76dacb9519e891 (patch)
tree983b0da7dc59036e49efa95c72088383422579e1 /tensorflow/contrib/lite/python
parent30a7ef5b689acc97685d8a32d99f4d59bebc8d5f (diff)
Build fix for interpreter_wrapper.h
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'tensorflow/contrib/lite/python')
-rw-r--r--tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h b/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h
index 3e03751da4..f83063627a 100644
--- a/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h
+++ b/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h
@@ -21,6 +21,11 @@ limitations under the License.
#include <string>
#include <vector>
+// Place `<locale>` before <Python.h> to avoid build failures in macOS.
+#include <locale>
+
+// The empty line above is on purpose as otherwise clang-format will
+// automatically move <Python.h> before <locale>.
#include <Python.h>
// We forward declare TFLite classes here to avoid exposing them to SWIG.