Skip to content

Commit a884fe4

Browse files
committed
build: Linux getenv
1 parent 05a7e9d commit a884fe4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/native/src/main.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,16 +335,7 @@ void measure_text_draw(alphaskia_canvas_t canvas,
335335

336336
bool isDebug()
337337
{
338-
std::string var;
339-
size_t requiredSize;
340-
341-
getenv_s(&requiredSize, nullptr, 0, "ALPHASKIA_TEST_DEBUG");
342-
if (requiredSize == 0)
343-
{
344-
return false;
345-
}
346-
347-
return true;
338+
return getenv("ALPHASKIA_TEST_DEBUG");
348339
}
349340

350341
int measure_test(const std::filesystem::path &repository_root, const std::filesystem::path &test_data_path, bool isFreeType)

0 commit comments

Comments
 (0)