Blender V2.61 - r43446

Common.h

Go to the documentation of this file.
00001 /*
00002 -----------------------------------------------------------------------------
00003 This source file is part of VideoTexture library
00004 
00005 Copyright (c) 2006 The Zdeno Ash Miklas
00006 
00007 This program is free software; you can redistribute it and/or modify it under
00008 the terms of the GNU Lesser General Public License as published by the Free Software
00009 Foundation; either version 2 of the License, or (at your option) any later
00010 version.
00011 
00012 This program is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
00015 
00016 You should have received a copy of the GNU Lesser General Public License along with
00017 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00018 Place - Suite 330, Boston, MA 02111-1307, USA, or go to
00019 http://www.gnu.org/copyleft/lesser.txt.
00020 -----------------------------------------------------------------------------
00021 */
00022 
00027 #if defined WIN32
00028 #define WINDOWS_LEAN_AND_MEAN
00029 #endif
00030 
00031 #if !defined NULL
00032 #define NULL 0
00033 #endif
00034 
00035 #if !defined HRESULT
00036 #define HRESULT long
00037 #endif
00038 
00039 #if !defined DWORD
00040 #define DWORD unsigned long
00041 #endif
00042 
00043 #if !defined S_OK
00044 #define S_OK ((HRESULT)0L)
00045 #endif
00046 
00047 #if !defined BYTE
00048 #define BYTE unsigned char
00049 #endif
00050 
00051 #if !defined WIN32
00052 #define Sleep(time) sleep(time)
00053 #endif
00054 
00055 #if !defined FAILED
00056 #define FAILED(Status) ((HRESULT)(Status)<0)
00057 #endif
00058 
00059 #include <iostream>