Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util/strndup: move header inclusion as applicable | Emil Velikov | 2017-03-22 | 1 | -2/+1 |
| | | | | | | | Signed-off-by: Emil Velikov <[email protected]> Acked-by: Vedran Miletić <[email protected]> Acked-by: Juha-Pekka Heikkila <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> | ||||
* | util: inline strndup implementation in the header | Emil Velikov | 2017-03-22 | 1 | -2/+20 |
| | | | | | | | Signed-off-by: Emil Velikov <[email protected]> Acked-by: Vedran Miletić <[email protected]> Acked-by: Juha-Pekka Heikkila <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> | ||||
* | util: consistently use ifndef guards over pragma once | Emil Velikov | 2017-03-22 | 1 | -1/+4 |
| | | | | | | | Signed-off-by: Emil Velikov <[email protected]> Acked-by: Vedran Miletić <[email protected]> Acked-by: Juha-Pekka Heikkila <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> | ||||
* | util: Fix strndup prototype on C++. | Jose Fonseca | 2015-09-29 | 1 | -1/+9 |
| | | | | Trivial. | ||||
* | util: implement strndup for WIN32 | Samuel Iglesias Gonsalvez | 2015-09-29 | 1 | -0/+32 |
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]> |