commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r811445 - /commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h
Date Fri, 04 Sep 2009 15:30:19 GMT
Author: mturk
Date: Fri Sep  4 15:30:19 2009
New Revision: 811445

URL: http://svn.apache.org/viewvc?rev=811445&view=rev
Log:
Allow multiple invocations of check

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h?rev=811445&r1=811444&r2=811445&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h Fri Sep
 4 15:30:19 2009
@@ -476,10 +476,8 @@
                                   fn, ord, args, names)                     \
     typedef rettype (calltype *acr_winapi_fpt_##fn) args;                   \
     static acr_winapi_fpt_##fn acr_winapi_pfn_##fn = NULL;                  \
-    static int acr_winapi_chk_##fn = 0;                                     \
     static __inline int acr_winapi_ld_##fn()                                \
     {   if (acr_winapi_pfn_##fn) return 1;                                  \
-        if (acr_winapi_chk_##fn ++) return 0;                               \
         if (!acr_winapi_pfn_##fn)                                           \
             acr_winapi_pfn_##fn = (acr_winapi_fpt_##fn)                     \
                                       acr_load_dll_func(lib, #fn, ord);     \
@@ -494,10 +492,8 @@
                                   fn, ord, args, names)                     \
     typedef void (calltype *acr_winapi_fpt_##fn) args;                      \
     static acr_winapi_fpt_##fn acr_winapi_pfn_##fn = NULL;                  \
-    static int acr_winapi_chk_##fn = 0;                                     \
     static __inline int acr_winapi_ld_##fn()                                \
     {   if (acr_winapi_pfn_##fn) return 1;                                  \
-        if (acr_winapi_chk_##fn ++) return 0;                               \
         if (!acr_winapi_pfn_##fn)                                           \
             acr_winapi_pfn_##fn = (acr_winapi_fpt_##fn)                     \
                                       acr_load_dll_func(lib, #fn, ord);     \



Mime
View raw message