Mercurial > hg > vamp-plugin-sdk
comparison src/vamp-hostsdk/Files.cpp @ 406:b7268e8bd292
Build tweaks for OS/X
author | Chris Cannam |
---|---|
date | Tue, 16 Jun 2015 13:37:18 +0100 |
parents | 67704de2bb54 |
children | 35fa4733bc5d |
comparison
equal
deleted
inserted
replaced
405:67704de2bb54 | 406:b7268e8bd292 |
---|---|
259 if (!d) return files; | 259 if (!d) return files; |
260 | 260 |
261 struct dirent *e = 0; | 261 struct dirent *e = 0; |
262 while ((e = readdir(d))) { | 262 while ((e = readdir(d))) { |
263 | 263 |
264 if (!e->d_name) continue; | |
265 | |
266 size_t len = strlen(e->d_name); | 264 size_t len = strlen(e->d_name); |
267 if (len < extlen + 2 || | 265 if (len < extlen + 2 || |
268 e->d_name + len - extlen - 1 != "." + extension) { | 266 e->d_name + len - extlen - 1 != "." + extension) { |
269 continue; | 267 continue; |
270 } | 268 } |