~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to lib/md5_file.cpp

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// You should have received a copy of the GNU Lesser General Public License
16
16
// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
 
#if defined(_WIN32) && !defined(__STDWX_H__) && !defined(_BOINC_WIN_) && !defined(_AFX_STDAFX_H_)
 
18
#if   defined(_WIN32) && !defined(__STDWX_H__)
19
19
#include "boinc_win.h"
20
 
#endif
21
 
 
22
 
#ifdef _WIN32
23
 
#include <wincrypt.h>
 
20
#elif defined(_WIN32) && defined(__STDWX_H__)
 
21
#include "stdwx.h"
24
22
#else
25
23
#include "config.h"
26
24
#ifdef _USING_FCGI_
30
28
#endif
31
29
#endif
32
30
 
 
31
#ifdef _WIN32
 
32
#include <wincrypt.h>
 
33
#endif
 
34
 
33
35
#include "md5.h"
34
36
#include "md5_file.h"
35
37
#include "error_numbers.h"
49
51
#endif
50
52
    if (!f) {
51
53
        fprintf(stderr, "md5_file: can't open %s\n", path);
52
 
        perror("md5_file");
 
54
#ifndef _USING_FCGI_
 
55
        std::perror("md5_file");
 
56
#else
 
57
        FCGI::perror("md5_file");
 
58
#endif
 
59
 
53
60
        return ERR_FOPEN;
54
61
    }
55
62
    md5_init(&state);
121
128
    return 0;
122
129
}
123
130
 
124
 
const char *BOINC_RCSID_5a0dc438fe = "$Id: md5_file.cpp 16069 2008-09-26 18:20:24Z davea $";