From bea66d22f2c0e97242c15652376ae4e82779f343 Mon Sep 17 00:00:00 2001 From: Samuel Iglesias Gonsalvez Date: Mon, 28 Sep 2015 14:23:34 +0200 Subject: util: implement strndup for WIN32 v2: - Add strndup.h to Makefile.sources (Emil) - Use calloc instead of malloc (Emil). - Check if allocation fails (Emil, Jose) - Add '#pragma once' and include stdlib.h to strndup.h (Jose) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92124 Reviewed-by: Jose Fonseca --- src/mesa/main/shader_query.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/shader_query.cpp') diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index e020dce288a..0cada5024bd 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.cpp @@ -37,6 +37,7 @@ #include "../glsl/program.h" #include "uniforms.h" #include "main/enums.h" +#include "util/strndup.h" extern "C" { #include "shaderapi.h" -- cgit v1.2.3