Develop and Download Open Source Software

Browse Subversion Repository

Contents of /common/RemoveFile.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 375 - (show annotations) (download) (as text)
Sat Feb 21 01:17:56 2009 UTC (15 years, 1 month ago) by satofumi
File MIME type: text/x-c++src
File size: 329 byte(s)
MinGW でコンパイルできるように修正
1 /*!
2 \file
3 \brief ファイル削除
4
5 \author Satofumi KAMIMURA
6
7 $Id$
8
9 \todo MSC 用の調整を行う
10 */
11
12 #include "RemoveFile.h"
13 #include "DetectOS.h"
14 #ifndef MSC
15 #include <unistd.h>
16 #else
17 #include <windows.h>
18 #endif
19
20 void beego::removeFile(const char *file) {
21
22 #if defined(MSC)
23 DeleteFileA(file);
24 #else
25 unlink(file);
26 #endif
27 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26