From 7694a395017323a409c74c526a7a12e9622e713a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 13 Aug 2018 14:55:45 +1000 Subject: [PATCH] cxx: explicitly enable format macros This is required to enable format functionality under win32 --- nc_cxx.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nc_cxx.cmake b/nc_cxx.cmake index 97b30f1..6d09fbf 100644 --- a/nc_cxx.cmake +++ b/nc_cxx.cmake @@ -73,3 +73,5 @@ add_definitions("-Drestrict=${RESTRICT_KEYWORD}") append_compile_flag("-pipe") append_compile_flag("-fno-deduce-init-list") append_compile_flag("-fvisibility=hidden") + +append_compile_flag("-D__STDC_FORMAT_MACROS")