/***************************************************************************
    begin       : Mon Jun 14 2010
    copyright   : (C) 2010 by Martin Preuss
    email       : martin@libchipcard.de

 ***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or         *
 *   modify it under the terms of the GNU Lesser General Public            *
 *   License as published by the Free Software Foundation; either          *
 *   version 2.1 of the License, or (at your option) any later version.    *
 *                                                                         *
 *   This library is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 *   Lesser General Public License for more details.                       *
 *                                                                         *
 *   You should have received a copy of the GNU Lesser General Public      *
 *   License along with this library; if not, write to the Free Software   *
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
 *   MA  02111-1307  USA                                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef RSCT_PLATFORM_WIN32_H
#define RSCT_PLATFORM_WIN32_H

#include <windows.h>
#include <tchar.h>
#include <winscard.h>
#include <Rpc.h>
#ifndef DONT_USE_STDINT
#include <stdint.h>
#elif _WINDOWS
#define uint32_t ULONG
#define uint16_t USHORT
#define uint8_t BYTE

#define int32_t LONG
#define int16_t SHORT
#define int8_t char
#else
#include <stdint.h>
#endif

#ifdef D_DOUBLE_DECORADED
#define RSCT_UINT32 ULONG
#define RSCT_UINT16 USHORT
#define RSCT_UINT8 BYTE

#define RSCT_INT32 LONG
#define RSCT_INT16 SHORT
#define RSCT_INT8 char
#else
#define RSCT_UINT32 uint32_t
#define RSCT_UINT16 uint16_t
#define RSCT_UINT8 uint8_t

#define RSCT_INT32 int32_t
#define RSCT_INT16 int16_t
#define RSCT_INT8 int8_t
#endif

#pragma warning (disable:4996)


#ifdef UNDER_CE
# define RSCT_NO_VARGS
#endif


#ifdef CJECA32_EXPORTS
# define CJECA32_API __declspec(dllexport)
#else
# define CJECA32_API __declspec(dllimport)
#endif
#define CJECA32_PRIVATE_API
#define CJECA32_PRIVATE_CLASS

#define RSCT_STDCALL _stdcall
#define strdup(m) _strdup(m)


#include "stdafx.h"

#ifndef strcasecmp
# define strcasecmp stricmp
#endif

#endif

