biew: fix build on some targets
This patch fixes a namespace violation resulting in conflicts and build failure on some targets.
This commit is contained in:
parent
588341d657
commit
1c49e4b0d9
1 changed files with 26 additions and 0 deletions
26
srcpkgs/biew/patches/bool.patch
Normal file
26
srcpkgs/biew/patches/bool.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
The two underscores in the front violate namespace and
|
||||
break build at least on some systems, as __bool might be
|
||||
a builtin type name.
|
||||
|
||||
--- plugins/bin/ne.c
|
||||
+++ plugins/bin/ne.c
|
||||
@@ -465,16 +465,16 @@ static void __FASTCALL__ ShowProcListNE( int modno )
|
||||
{
|
||||
BGLOBAL handle;
|
||||
char ptitle[80],name[50];
|
||||
- tBool __bool;
|
||||
+ tBool b;
|
||||
memArray* obj;
|
||||
TWindow *w;
|
||||
handle = ne_cache;
|
||||
bioSeek(handle,0L,SEEK_SET);
|
||||
w = PleaseWaitWnd();
|
||||
if(!(obj = ma_Build(0,True))) return;
|
||||
- __bool = __ReadProcListNE(handle,obj,modno);
|
||||
+ b = __ReadProcListNE(handle,obj,modno);
|
||||
CloseWnd(w);
|
||||
- if(__bool)
|
||||
+ if(b)
|
||||
{
|
||||
if(!obj->nItems) { NotifyBox(NOT_ENTRY,MOD_REFER); return; }
|
||||
rd_ImpName(name,sizeof(name),modno+1,False);
|
Loading…
Reference in a new issue