/***************************************************************************
                             UnicodeFix.h
                             -------------------
    Begin                : Sat Oct 13, 2001
    Objective            : Fix the broke standard library functions
    Author               : Drew Hall
    Email                : dhall@Zero-Soft.com
 ***************************************************************************/

#define UNICODE_ERROR -2


#ifndef __UNICODEFIX_H__
#define __UNICODEFIX_H__

#ifdef UNICODE

#define strlen    wcslen
#define strcpy    wcscpy
#define strncpy   wcsncpy
#define strcat    wcscat
#define strncat   wcsncat
#define strcmp    wcscmp
#define strncmp   wcsncmp
#define strrchr   wcsrchr

#define atoi      _wtoi
#define ctime     _wctime
#define vsprintf  vswprintf

// Winsock patch functions
#define recv recvW
#define send sendW


#endif

#endif
