OnixS C++ FIX Engine 2.79.1.0
C:/Users/Pasha/_Dev/fixforge-cpp/fix/cppEngine/include/OnixS/FIX/Definitions.h
00001 /*
00002 * Copyright 2005-2011 Onix Solutions Limited [OnixS]. All rights reserved. 
00003 * 
00004 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law 
00005 * and international copyright treaties. 
00006 * 
00007 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
00008 * Services Agreement (the Agreement) and Customer end user license agreements granting 
00009 * a non-assignable, non-transferable and non-exclusive license to use the software 
00010 * for it's own data processing purposes under the terms defined in the Agreement.
00011 * 
00012 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part 
00013 * of this source code or associated reference material to any other location for further reproduction
00014 * or redistribution, and any amendments to this copyright notice, are expressly prohibited. 
00015 *
00016 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with 
00017 * the terms of the Agreement is a violation of copyright law. 
00018 */
00019 
00020 #if !defined(__ONIXS_DEFINITIONS_H__)
00021 #define __ONIXS_DEFINITIONS_H__
00022 
00023 #include "OnixS/FIX/ABI.h"
00024 
00025 #ifdef _WIN32
00026 #ifndef STRICT
00027 #define STRICT
00028 #endif
00029 
00030 #define WIN32_LEAN_AND_MEAN
00031 #ifndef _WIN32_WINNT
00032 #define _WIN32_WINNT 0x0400 //Windows NT 4.0 and later
00033 #endif
00034 
00035 #include <Windows.h>
00036 #else
00037 #include <pthread.h>
00038 #endif
00039 
00040 namespace OnixS 
00041 { 
00042     namespace FIX 
00043     {
00045         enum ONIXS_FIXENGINE_API Version 
00046         { 
00047             UNKNOWN, 
00048             FIX_40, 
00049             FIX_41, 
00050             FIX_42, 
00051             FIX_43, 
00052             FIX_44, 
00053             FIX_50, 
00054             FIX_50_SP1,
00055             FIX_50_SP2
00056         };
00057     }
00058 
00059     namespace System
00060     {
00061 #ifdef _WIN32
00062         typedef DWORD ThreadId;
00063 #else
00064         typedef pthread_t ThreadId;
00065 #endif
00066         
00067     }
00068 }
00069 
00070 #ifndef byte
00071 typedef unsigned char byte;
00072 #endif
00073 
00074 #endif // __ONIXS_DEFINITIONS_H__