renamed const name since it is a macro in a system header on OS X (/usr/include/sys/syslimits.h)

This commit is contained in:
Andreas Antener
2015-01-30 11:33:51 +01:00
committed by Lorenz Meier
parent f2c1d6d66d
commit 959aefba63
+3 -3
View File
@@ -10,8 +10,8 @@
#include "gtest/gtest.h"
TEST(SF0XTest, SF0X) {
const char LINE_MAX = 20;
char _linebuf[LINE_MAX];
const char _LINE_MAX = 20;
char _linebuf[_LINE_MAX];
_linebuf[0] = '\0';
const char *lines[] = {"0.01\r\n",
@@ -34,7 +34,7 @@ TEST(SF0XTest, SF0X) {
enum SF0X_PARSE_STATE state = SF0X_PARSE_STATE0_UNSYNC;
float dist_m;
char _parserbuf[LINE_MAX];
char _parserbuf[_LINE_MAX];
unsigned _parsebuf_index = 0;
for (unsigned l = 0; l < sizeof(lines) / sizeof(lines[0]); l++) {