include/woff2/output.h: add missing <stdint.h> include

Without the change `woff2` build fails on upcoming `gcc-15` as:

    In file included from src/woff2_out.cc:9:
    include/woff2/output.h:73:25: error: expected ')' before '*' token
       73 |   WOFF2MemoryOut(uint8_t* buf, size_t buf_size);
          |                 ~       ^
          |                         )
    include/woff2/output.h:79:3: error: 'uint8_t' does not name a type
       79 |   uint8_t* buf_;
          |   ^~~~~~~
    include/woff2/output.h:16:1: note: 'uint8_t' is defined in header '<cstdint>';
      this is probably fixable by adding '#include <cstdint>'
       15 | #include <string>
      +++ |+#include <cstdint>
       16 |
This commit is contained in:
Sergei Trofimovich
2024-08-02 22:12:03 +01:00
committed by Garret Rieger
parent f83a177390
commit 1f184d0556
+2
View File
@@ -9,6 +9,8 @@
#ifndef WOFF2_WOFF2_OUT_H_ #ifndef WOFF2_WOFF2_OUT_H_
#define WOFF2_WOFF2_OUT_H_ #define WOFF2_WOFF2_OUT_H_
#include <stdint.h>
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#include <memory> #include <memory>