View Single Post
Old 03 January 2023, 19:07   #3
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
Ok, thank you for explaining.
Maybe this thread should have been in Coders.System instead, because I'm not quite sure I understand.

I got this code that compiles with older NDK:
Code:
APTR __stdargs AllocAslRequestTags(
    ULONG type,
    Tag tag1,...)
{
    return AllocAslRequest(type,(struct TagItem *)&tag1);
}
That fails with "Error 72: conflict with previous declaration See line 34 file "include:clib/asl_protos.h"

Is the solution to change it to:
Code:
APTR __stdargs AllocAslRequestTags(
    ULONG type,
    ...)
{
    return AllocAslRequest(type,(struct TagItem *)&tag1);
}
And that will work? Or am I missing something?
Update: When I look at it after posting, it does not seem right. tag1 is not defined anywhere. Just used.

Last edited by hceline; 03 January 2023 at 19:17. Reason: On further thought.My solution does not seem right
hceline is offline  
 
Page generated in 0.04294 seconds with 11 queries