comparison mac/dw.m @ 1301:7527fb644bc0

Only use default directory and filename options for Mac 10.6 and higher.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 03 Nov 2011 01:19:17 +0000
parents 79db0563c7c2
children 5fbf384780d1
comparison
equal deleted inserted replaced
1300:9c8de9cccc07 1301:7527fb644bc0
3127 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags) 3127 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags)
3128 { 3128 {
3129 char temp[PATH_MAX+1]; 3129 char temp[PATH_MAX+1];
3130 char *file = NULL, *path = NULL; 3130 char *file = NULL, *path = NULL;
3131 3131
3132 /* Figure out path information */ 3132 /* Figure out path information...
3133 if(defpath) 3133 * These functions are only support in Snow Leopard and later...
3134 */
3135 if(defpath && DWOSMinor > 5)
3134 { 3136 {
3135 struct stat buf; 3137 struct stat buf;
3136 3138
3137 /* Get an absolute path */ 3139 /* Get an absolute path */
3138 if(!realpath(defpath, temp)) 3140 if(!realpath(defpath, temp))