projects
/
vg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fonts
[vg.git]
/
vg_platform.h
diff --git
a/vg_platform.h
b/vg_platform.h
index 1f388988b2f7e101175d3a0a4d01670a4b4c5a4a..1b0317c0c30b0b43ff971fa97c01370eb89987de 100644
(file)
--- a/
vg_platform.h
+++ b/
vg_platform.h
@@
-40,12
+40,16
@@
struct vg_achievement
#define VG_MUST_USE_RESULT __attribute__((warn_unused_result))
#include <stdio.h>
#define VG_MUST_USE_RESULT __attribute__((warn_unused_result))
#include <stdio.h>
-#include <dirent.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include <math.h>
#include <assert.h>
+#include <setjmp.h>
+#include <sys/time.h>
+#include <math.h>
+#include <stdio.h>
+#include <errno.h>
enum strncpy_behaviour{
k_strncpy_always_add_null = 0,
enum strncpy_behaviour{
k_strncpy_always_add_null = 0,
@@
-92,6
+96,7
@@
VG_STATIC void vg_strnull( vg_str *str, char *buffer, u32 len )
VG_STATIC void vg_strcat( vg_str *str, const char *append )
{
VG_STATIC void vg_strcat( vg_str *str, const char *append )
{
+ if( !append ) return;
for( u32 i=0; str->i < str->len; i++, str->i ++ ){
str->buffer[ str->i ] = append[i];
for( u32 i=0; str->i < str->len; i++, str->i ++ ){
str->buffer[ str->i ] = append[i];