aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/kernels/op_macros.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-12-11 19:19:26 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-12-11 19:22:51 -0800
commitc210009d0a8d40d458c21b1faf7b1adf8e4deaee (patch)
treeb9d389678e04cc42b46f23bfb57907a2f8799518 /tensorflow/contrib/lite/kernels/op_macros.h
parentecdecc5a325482edac2cdef2d40e091ed8b5016d (diff)
Includes <cstdio> in the TF Lite kernels/op_macros.h to fix a compile errors
when building externally using either the Makefile or Bazel. The macros use stderr and fprintf which may not be defined depending on the order of headers included by the .cc files. PiperOrigin-RevId: 178708839
Diffstat (limited to 'tensorflow/contrib/lite/kernels/op_macros.h')
-rw-r--r--tensorflow/contrib/lite/kernels/op_macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/kernels/op_macros.h b/tensorflow/contrib/lite/kernels/op_macros.h
index 7535afaf8e..63670efcb1 100644
--- a/tensorflow/contrib/lite/kernels/op_macros.h
+++ b/tensorflow/contrib/lite/kernels/op_macros.h
@@ -15,6 +15,8 @@ limitations under the License.
#ifndef THIRD_PARTY_TENSORFLOW_CONTRIB_LITE_KERNELS_OP_UTIL_H_
#define THIRD_PARTY_TENSORFLOW_CONTRIB_LITE_KERNELS_OP_UTIL_H_
+#include <cstdio>
+
#define TF_LITE_FATAL(msg) \
do { \
fprintf(stderr, "%s\n", (msg)); \