aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/lib
diff options
context:
space:
mode:
authorGravatar Nupur Garg <nupurgarg@google.com>2018-07-13 00:08:29 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-13 00:12:23 -0700
commit9be83d3d6e7d1e61d7c3cc4160d214c633665751 (patch)
tree03efdae1ab3f5e62f196e277bd86ecf8859da70a /tensorflow/python/lib
parent1b765165987f5277e294251c118f321166c70932 (diff)
Fix import order in interpreter_wrapper.h.
PiperOrigin-RevId: 204429340
Diffstat (limited to 'tensorflow/python/lib')
-rw-r--r--tensorflow/python/lib/core/numpy.h3
-rw-r--r--tensorflow/python/lib/core/py_util.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/python/lib/core/numpy.h b/tensorflow/python/lib/core/numpy.h
index d4621d61ee..0098d938a0 100644
--- a/tensorflow/python/lib/core/numpy.h
+++ b/tensorflow/python/lib/core/numpy.h
@@ -30,9 +30,10 @@ limitations under the License.
#endif
// Place `<locale>` before <Python.h> to avoid build failure in macOS.
-#include <Python.h>
#include <locale>
+#include <Python.h>
+
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"
diff --git a/tensorflow/python/lib/core/py_util.cc b/tensorflow/python/lib/core/py_util.cc
index 6b6c82015f..2ee898ea1d 100644
--- a/tensorflow/python/lib/core/py_util.cc
+++ b/tensorflow/python/lib/core/py_util.cc
@@ -16,9 +16,10 @@ limitations under the License.
#include "tensorflow/python/lib/core/py_util.h"
// Place `<locale>` before <Python.h> to avoid build failure in macOS.
-#include <Python.h>
#include <locale>
+#include <Python.h>
+
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/strings/strcat.h"