add fix it to build on linux

svn path=/trunk/; revision=17458
This commit is contained in:
Steven Edwards 2005-08-21 14:41:20 +00:00
parent d45951b413
commit f0652f0b65

View file

@ -19,13 +19,14 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifdef _WIN32
#include <objbase.h>
#include <stdio.h>
static HRESULT (*pCoInitialize)(PVOID);
static void (*pCoUninitialize)(void);
static HRESULT (*pCoCreateGuid)(GUID*);
static HRESULT (*pCoCreateGuid)(GUID*);
void gen_guid()
{
@ -59,3 +60,9 @@ void gen_guid()
m_guid.Data4[6],m_guid.Data4[7]);
pCoUninitialize();
}
#else /* Linux, etc */
void gen_guid()
{
}
#endif /* WIN32/Linux */