[Mesa-dev] [PATCH] glsl: define __STDC_FORMAT_MACROS to get PRIx64 macro
Jose Fonseca
jfonseca at vmware.com
Fri Nov 11 17:02:24 UTC 2016
On 11/11/16 16:18, Brian Paul 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
> #include <inttypes.h> /* for PRIx64 macro */
> #include "ir.h"
> #include "ir_hierarchical_visitor.h"
>
Looks great. I think that at some point we'll want to define this
globally, in configure.ac / SCons.
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
Jose
More information about the mesa-dev
mailing list