mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-22 11:08:21 +00:00
Use std::string instead of std::format: Apple Clang 15 does not support it
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <format>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
|
||||
#include "../../public/common/tracy_lz4hc.hpp"
|
||||
|
||||
@@ -43,7 +43,7 @@ int main( int argc, char** argv )
|
||||
const auto lz4sz = tracy::LZ4_compress_HC( (const char*)data, (char*)lz4data, sz, lz4szMax, 6 );
|
||||
delete[] data;
|
||||
|
||||
FILE* hdr = fopen( std::format( "{}.hpp", destination ).c_str(), "wb" );
|
||||
FILE* hdr = fopen( ( std::string(destination) + ".hpp" ).c_str(), "wb" );
|
||||
fprintf( hdr, "// This file is generated by embed tool, do not modify\n" );
|
||||
fprintf( hdr, "// Source: %s\n\n", source );
|
||||
fprintf( hdr, "#pragma once\n\n" );
|
||||
@@ -56,7 +56,7 @@ int main( int argc, char** argv )
|
||||
fprintf( hdr, "}\n" );
|
||||
fclose( hdr );
|
||||
|
||||
FILE* cpp = fopen( std::format( "{}.cpp", destination ).c_str(), "wb" );
|
||||
FILE* cpp = fopen( ( std::string(destination) + ".cpp" ).c_str(), "wb" );
|
||||
fprintf( cpp, "// This file is generated by embed tool, do not modify\n" );
|
||||
fprintf( cpp, "// Source: %s\n\n", source );
|
||||
fprintf( cpp, "#include \"%s.hpp\"\n\n", destination );
|
||||
|
||||
Reference in New Issue
Block a user