junrushao opened a new pull request, #15737:
URL: https://github.com/apache/tvm/pull/15737

   This commits adds `__STDC_FORMAT_MACROS` when including picojson in C++. 
This should fix a recent build issue as below:
   
   ```
   In file included from src/runtime/relax_vm/ndarray_cache_support.cc:40:
   3rdparty/picojson/picojson.h: In member function 'std::string 
picojson::value::to_str() const':
   3rdparty/picojson/picojson.h:494:37: error: expected ')' before 'PRId64'
     494 |       SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_);
         |               ~                     ^~~~~~~
         |                                     )
   3rdparty/picojson/picojson.h:81:1: note: 'PRId64' is defined in header 
'<cinttypes>'; did you forget to '#include <cinttypes>'?
      80 | #include <errno.h>
     +++ |+#include <cinttypes>
      81 | #include <inttypes.h>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to