glsl: define __STDC_FORMAT_MACROS to get PRIx64 macro

Otherwise, inttypes.h may not define the macro for C++ on MinGW.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98681
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Brian Paul 2016-11-11 09:16:34 -07:00
parent f9052536c9
commit 92ec47a6ba
1 changed files with 1 additions and 0 deletions

View File

@ -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"