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/util/Makefile.sources | |
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/util/Makefile.sources')
-rw-r--r-- | src/util/Makefile.sources | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/Makefile.sources b/src/util/Makefile.sources index afdd0cb3b5c..ef38b5ac7d1 100644 --- a/src/util/Makefile.sources +++ b/src/util/Makefile.sources @@ -17,6 +17,8 @@ MESA_UTIL_FILES := \ set.c \ set.h \ simple_list.h \ + strndup.c \ + strndup.h \ strtod.c \ strtod.h \ texcompress_rgtc_tmp.h \ |