diff options
author | Samuel Iglesias Gonsalvez <[email protected]> | 2015-09-28 14:23:34 +0200 |
---|---|---|
committer | Samuel Iglesias Gonsalvez <[email protected]> | 2015-09-29 10:03:47 +0200 |
commit | bea66d22f2c0e97242c15652376ae4e82779f343 (patch) | |
tree | 500a6cc0c77ff534d40b3a32619ef2bc34c1f2b1 /src/mesa/main | |
parent | 7efb2350199f7ea5acbadb76a1a19eda75b45a45 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/shader_query.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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" |