Changeset 27 for trunk/include


Ignore:
Timestamp:
Jun 1, 1999, 9:48:18 PM (26 years ago)
Author:
phaller
Message:

Fix: VAC++ doesn't like the GCC function typedef with *

Location:
trunk/include/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/heap.h

    r4 r27  
    1 /* $Id: heap.h,v 1.1 1999-05-24 20:19:12 ktk Exp $ */
     1/* $Id: heap.h,v 1.2 1999-06-01 19:48:18 phaller Exp $ */
    22
    33/*
     
    3434#define SEGPTR_STRDUP_WtoA(str) \
    3535         (HIWORD(str) ? HEAP_strdupWtoA( SegptrHeap, 0, (str) ) : (LPSTR)(str))
    36         /* define an inline function, a macro won't do */
    37 static __inline__ SEGPTR WINE_UNUSED SEGPTR_Get(LPCVOID ptr) {
    38          return (HIWORD(ptr) ? HEAP_GetSegptr( SegptrHeap, 0, ptr ) : (SEGPTR)ptr);
     36
     37/* define an inline function, a macro won't do */
     38static SEGPTR SEGPTR_Get(LPCVOID ptr)
     39{
     40  return (HIWORD(ptr) ? HEAP_GetSegptr( SegptrHeap, 0, ptr ) : (SEGPTR)ptr);
    3941}
     42
    4043#define SEGPTR_GET(ptr) SEGPTR_Get(ptr)
    4144#define SEGPTR_FREE(ptr) \
  • trunk/include/win/winnls.h

    r26 r27  
    1 /* $Id: winnls.h,v 1.2 1999-06-01 19:44:05 phaller Exp $ */
     1/* $Id: winnls.h,v 1.3 1999-06-01 19:48:18 phaller Exp $ */
    22
    33#ifndef __WINE_WINNLS_H
     
    578578typedef DWORD CALID;
    579579
    580 typedef BOOL (CALLBACK* CALINFO_ENUMPROCA)(LPSTR);
    581 typedef BOOL (CALLBACK* CALINFO_ENUMPROCW)(LPWSTR);
     580#if (defined(__IBMCPP__) || defined(__IBMC__))
     581  typedef BOOL (CALLBACK tCALINFO_ENUMPROCA)(LPSTR);
     582  typedef BOOL (CALLBACK tCALINFO_ENUMPROCW)(LPWSTR);
     583  typedef tCALINFO_ENUMPROCA *CALINFO_ENUMPROCA;
     584  typedef tCALINFO_ENUMPROCW *CALINFO_ENUMPROCW;
     585#else
     586  typedef BOOL (CALLBACK* CALINFO_ENUMPROCA)(LPSTR);
     587  typedef BOOL (CALLBACK* CALINFO_ENUMPROCW)(LPWSTR);
     588#endif
     589
     590
    582591DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC)
    583592
Note: See TracChangeset for help on using the changeset viewer.