From 99cb9d87b553b99c08a69eb48a1684384f71b3ff Mon Sep 17 00:00:00 2001 From: Rohit Kumar Srivastava Date: Thu, 15 Aug 2019 02:37:05 +0000 Subject: [PATCH] maintining typedefs for other language bindings --- include/mxnet/c_api.h | 6 ++---- include/mxnet/c_predict_api.h | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/include/mxnet/c_api.h b/include/mxnet/c_api.h index 0d8ce46bae16..05dba57861a4 100644 --- a/include/mxnet/c_api.h +++ b/include/mxnet/c_api.h @@ -55,11 +55,9 @@ extern "C" { #endif /*! \brief manually define unsigned int */ -typedef uint32_t uint32_t; -/*! \brief manually define 64-bit int */ -typedef int64_t int64_t; +typedef uint32_t mx_uint; /*! \brief manually define float */ -typedef float float; +typedef float mx_float; /*! \brief data type to store dim size */ typedef int64_t dim_t; // all the handles are simply void * diff --git a/include/mxnet/c_predict_api.h b/include/mxnet/c_predict_api.h index 04ab44d59e88..7769664a9783 100644 --- a/include/mxnet/c_predict_api.h +++ b/include/mxnet/c_predict_api.h @@ -42,11 +42,9 @@ extern "C" { #endif /*! \brief manually define unsigned int */ -typedef uint32_t uint32_t; -/*! \brief manually define 64-bit int */ -typedef int64_t int64_t; +typedef uint32_t mx_uint; /*! \brief manually define float */ -typedef float float; +typedef float mx_float; /*! \brief handle to Predictor */ typedef void *PredictorHandle; /*! \brief handle to NDArray list */