mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
add fix it to build on linux
svn path=/trunk/; revision=17458
This commit is contained in:
parent
d45951b413
commit
f0652f0b65
1 changed files with 9 additions and 2 deletions
|
@ -19,13 +19,14 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
#include <objbase.h>
|
#include <objbase.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
static HRESULT (*pCoInitialize)(PVOID);
|
static HRESULT (*pCoInitialize)(PVOID);
|
||||||
static void (*pCoUninitialize)(void);
|
static void (*pCoUninitialize)(void);
|
||||||
static HRESULT (*pCoCreateGuid)(GUID*);
|
static HRESULT (*pCoCreateGuid)(GUID*);
|
||||||
|
|
||||||
void gen_guid()
|
void gen_guid()
|
||||||
{
|
{
|
||||||
|
@ -59,3 +60,9 @@ void gen_guid()
|
||||||
m_guid.Data4[6],m_guid.Data4[7]);
|
m_guid.Data4[6],m_guid.Data4[7]);
|
||||||
pCoUninitialize();
|
pCoUninitialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* Linux, etc */
|
||||||
|
void gen_guid()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif /* WIN32/Linux */
|
||||||
|
|
Loading…
Reference in a new issue