00001 #include "libu_conf.h" 00002 00003 #ifndef HAVE_UNLINK 00004 00005 int unlink(const char *pathname) 00006 { 00007 #if OS_WIN 00008 return DeleteFile(pathname) ? 0 /* success */: -1 /* failure */; 00009 #else 00010 #error "unimplemented" 00011 #endif 00012 } 00013 00014 #else 00015 #include <unistd.h> 00016 int unlink(const char *); 00017 #endif 00018