comparison paths.c @ 1524:b96f9fae757f nuklear_ui

Fix Windows build, added Windows default_font_path implementation
author Michael Pavone <pavone@retrodev.com>
date Wed, 07 Feb 2018 00:07:12 -0800
parents 637fbc3b5063
children ab3b465c052c
comparison
equal deleted inserted replaced
1523:c416ace65ff1 1524:b96f9fae757f
106 { 106 {
107 if (!strcmp(suffix, "..")) { 107 if (!strcmp(suffix, "..")) {
108 #ifdef _WIN32 108 #ifdef _WIN32
109 //handle transition from root of a drive to virtual root 109 //handle transition from root of a drive to virtual root
110 if (base[1] == ':' && !base[2]) { 110 if (base[1] == ':' && !base[2]) {
111 return strdup(PATH_SEP) 111 return strdup(PATH_SEP);
112 } 112 }
113 #endif 113 #endif
114 size_t len = strlen(base); 114 size_t len = strlen(base);
115 while (len > 0) { 115 while (len > 0) {
116 --len; 116 --len;