imapext-2007

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/osdep/nt/os_nt.h	Mon Sep 14 15:17:45 2009 +0900
     1.3 @@ -0,0 +1,60 @@
     1.4 +/* ========================================================================
     1.5 + * Copyright 1988-2007 University of Washington
     1.6 + *
     1.7 + * Licensed under the Apache License, Version 2.0 (the "License");
     1.8 + * you may not use this file except in compliance with the License.
     1.9 + * You may obtain a copy of the License at
    1.10 + *
    1.11 + *     http://www.apache.org/licenses/LICENSE-2.0
    1.12 + *
    1.13 + * 
    1.14 + * ========================================================================
    1.15 + */
    1.16 +
    1.17 +/*
    1.18 + * Program:	Operating-system dependent routines -- NT version
    1.19 + *
    1.20 + * Author:	Mark Crispin
    1.21 + *		Networks and Distributed Computing
    1.22 + *		Computing & Communications
    1.23 + *		University of Washington
    1.24 + *		Administration Building, AG-44
    1.25 + *		Seattle, WA  98195
    1.26 + *		Internet: MRC@CAC.Washington.EDU
    1.27 + *
    1.28 + * Date:	11 May 1989
    1.29 + * Last Edited:	27 April 2007
    1.30 + */
    1.31 +
    1.32 +#include <stdlib.h>
    1.33 +#include <string.h>
    1.34 +#include <stdio.h>
    1.35 +#include <sys\types.h>
    1.36 +#include <time.h>
    1.37 +#include <io.h>
    1.38 +#include <conio.h>
    1.39 +#include <process.h>
    1.40 +#undef ERROR			/* quell conflicting defintion warning */
    1.41 +#include <windows.h>
    1.42 +#include <lm.h>
    1.43 +#undef ERROR
    1.44 +#define ERROR (long) 2		/* must match mail.h */
    1.45 +
    1.46 +#if _MSC_VER >= 1400
    1.47 +#define strtok_r strtok_s	/* for some reason they called it this */
    1.48 +#else
    1.49 +/* strtok() is actually MT-safe in MSVC.  Why is it that Microsoft can do
    1.50 + * their CRT right, but GNU, Sun, etc. can't?
    1.51 + */
    1.52 +#define strtok_r(a,b,c) strtok(*(c) = a,b)
    1.53 +#endif
    1.54 +
    1.55 +#include "env_nt.h"
    1.56 +#include "fs.h"
    1.57 +#include "ftl.h"
    1.58 +#include "nl.h"
    1.59 +#include "tcp.h"
    1.60 +#include "yunchan.h"
    1.61 +
    1.62 +#undef noErr
    1.63 +#undef MAC

UW-IMAP'd extensions by yuuji