imapext-2007

view src/osdep/nt/os_nt.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 /* ========================================================================
2 * Copyright 1988-2007 University of Washington
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *
11 * ========================================================================
12 */
14 /*
15 * Program: Operating-system dependent routines -- NT version
16 *
17 * Author: Mark Crispin
18 * Networks and Distributed Computing
19 * Computing & Communications
20 * University of Washington
21 * Administration Building, AG-44
22 * Seattle, WA 98195
23 * Internet: MRC@CAC.Washington.EDU
24 *
25 * Date: 11 May 1989
26 * Last Edited: 27 April 2007
27 */
29 #include <stdlib.h>
30 #include <string.h>
31 #include <stdio.h>
32 #include <sys\types.h>
33 #include <time.h>
34 #include <io.h>
35 #include <conio.h>
36 #include <process.h>
37 #undef ERROR /* quell conflicting defintion warning */
38 #include <windows.h>
39 #include <lm.h>
40 #undef ERROR
41 #define ERROR (long) 2 /* must match mail.h */
43 #if _MSC_VER >= 1400
44 #define strtok_r strtok_s /* for some reason they called it this */
45 #else
46 /* strtok() is actually MT-safe in MSVC. Why is it that Microsoft can do
47 * their CRT right, but GNU, Sun, etc. can't?
48 */
49 #define strtok_r(a,b,c) strtok(*(c) = a,b)
50 #endif
52 #include "env_nt.h"
53 #include "fs.h"
54 #include "ftl.h"
55 #include "nl.h"
56 #include "tcp.h"
57 #include "yunchan.h"
59 #undef noErr
60 #undef MAC

UW-IMAP'd extensions by yuuji