[Mesa-dev] [PATCH] glsl: define __STDC_FORMAT_MACROS to get PRIx64 macro
Emil Velikov
emil.l.velikov at gmail.com
Fri Nov 11 16:31:12 UTC 2016
On 11 November 2016 at 16:18, Brian Paul <brianp at vmware.com> wrote:
> Otherwise, inttypes.h may not define the macro for C++ on MinGW.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98681
> ---
> src/compiler/glsl/ir_builder_print_visitor.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/compiler/glsl/ir_builder_print_visitor.cpp b/src/compiler/glsl/ir_builder_print_visitor.cpp
> index 529466c..91a73c9 100644
> --- a/src/compiler/glsl/ir_builder_print_visitor.cpp
> +++ b/src/compiler/glsl/ir_builder_print_visitor.cpp
> @@ -21,6 +21,7 @@
> * DEALINGS IN THE SOFTWARE.
> */
>
> +#define __STDC_FORMAT_MACROS 1
Quick grep shows that we've got quite a few #define _STDC_*_MACROS
sprinkled around. Might be worth adding the final one(e) in the build
systems and cleaning up the rest.
Either way
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
-Emil
More information about the mesa-dev
mailing list