diff --git a/tensorflow/lite/core/c/common.h b/tensorflow/lite/core/c/common.h index 57caa3b759a..3f1fe32b8b4 100644 --- a/tensorflow/lite/core/c/common.h +++ b/tensorflow/lite/core/c/common.h @@ -322,7 +322,11 @@ typedef struct TfLiteBFloat16 { const char* TfLiteTypeGetName(TfLiteType type); /// SupportedQuantizationTypes. +#ifdef __cplusplus typedef enum TfLiteQuantizationType : int { +#else +typedef enum TfLiteQuantizationType { +#endif /// No quantization. kTfLiteNoQuantization = 0, /// Affine quantization (with support for per-channel quantization).