[ cegcc-Bugs-2750052 ] Definitions of API functions results in compiler errors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ cegcc-Bugs-2750052 ] Definitions of API functions results in compiler errors

SourceForge.net
Bugs item #2750052, was opened at 2009-04-10 02:02
Message generated for change (Settings changed) made by pfalcon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=2750052&group_id=173455

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Marcel Smit (marcelsmit)
Assigned to: Danny Backx (dannybackx)
Summary: Definitions of API functions results in compiler errors

Initial Comment:
In kfuncs.h some API functions are declared as follows:
#define GetCurrentThread() ((HANDLE)(SH_CURTHREAD+SYS_HANDLE_BASE))

This sometimes results in compiler errors.
Defining them as follows, resolves these compiler errors:

inline HANDLE GetCurrentProcess()
{
  return ((HANDLE)(SH_CURPROC+SYS_HANDLE_BASE));
}

Attached a changed kfuncs.h

----------------------------------------------------------------------

Comment By: Danny Backx (dannybackx)
Date: 2009-04-10 03:07

Message:
Applied your fix, thanks.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=2750052&group_id=173455

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Cegcc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel