This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 7b8c04273 Fix building with gcc 13
7b8c04273 is described below

commit 7b8c04273f12e2464903556f322cdb407ba45981
Author: Biswapriyo Nath <[email protected]>
AuthorDate: Thu Oct 5 20:05:13 2023 +0000

    Fix building with gcc 13
    
    This fixes the following compiler error.
    
    t_js_generator.cc:48:14: error: 'int64_t' does not name a type
       48 | static const int64_t max_safe_integer = 0x1fffffffffffff;
          |              ^~~~~~~
    t_js_generator.cc:50:14: error: 'int64_t' does not name a type
       50 | static const int64_t min_safe_integer = -max_safe_integer;
          |              ^~~~~~~
---
 compiler/cpp/src/thrift/generate/t_js_generator.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler/cpp/src/thrift/generate/t_js_generator.cc 
b/compiler/cpp/src/thrift/generate/t_js_generator.cc
index f5937d093..96250c9ba 100644
--- a/compiler/cpp/src/thrift/generate/t_js_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_js_generator.cc
@@ -28,6 +28,7 @@
 #include <cassert>
 #include <unordered_map>
 
+#include <stdint.h>
 #include <stdlib.h>
 #include <sys/stat.h>
 #include <sstream>

Reply via email to