blob: 0fecce04f09be365ee34ad3b5d7381a1dbed2b41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -r -nostdlib -flto} {-fPIC -r -nostdlib -O2 -flto}} } */
void * HeapAlloc(void*,unsigned int,unsigned long);
typedef struct tagGdiFont GdiFont;
typedef struct tagDC {
int xunused;
GdiFont *gdiFont;
unsigned int font_code_page;
} DC;
DC *alloc_dc_ptr( void *funcs, unsigned short magic )
{
DC *dc;
if (!(dc = HeapAlloc( 0, 0, sizeof(*dc) ))) return ((void *)0);
dc->gdiFont = 0;
return dc;
}
|