diff options
author | Dylan Baker <[email protected]> | 2019-12-09 10:54:16 -0800 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2020-04-21 11:09:03 -0700 |
commit | bf188f3494b85f550a39dddbf059669c2a9ee324 (patch) | |
tree | ced53e90730a93cef0200b2b974d25ba09a604b5 /src/mapi/glapi | |
parent | c495c3af26b73cb1d444fdd67cc6c1f0226bd168 (diff) |
mesa|mapi: replace _mesa_[v]snprintf with [v]snprintf
MSVC 2015 and newer has perfectly valid snprintf and vsnprintf
implementations, let's just use those.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r-- | src/mapi/glapi/gen/gl_enums.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_enums.py b/src/mapi/glapi/gen/gl_enums.py index 53987813642..255b1adfbed 100644 --- a/src/mapi/glapi/gen/gl_enums.py +++ b/src/mapi/glapi/gen/gl_enums.py @@ -50,6 +50,7 @@ class PrintGlEnums(gl_XML.gl_print_base): def printRealHeader(self): + print('#include <stdio.h>') print('#include "main/glheader.h"') print('#include "main/enums.h"') print('#include "util/imports.h"') @@ -103,7 +104,7 @@ _mesa_enum_to_string(int nr) } else { /* this is not re-entrant safe, no big deal here */ - _mesa_snprintf(token_tmp, sizeof(token_tmp) - 1, "0x%x", nr); + snprintf(token_tmp, sizeof(token_tmp) - 1, "0x%x", nr); token_tmp[sizeof(token_tmp) - 1] = '\\0'; return token_tmp; } |