Hi,

this patch removes the unused bufsizeof macro.

BTW, this patch and all other patches submitted by me to be used in
LibreOffice are released under LGPLv3+.

-- Kenneth

diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index 57ec786..ad67487 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -393,8 +393,6 @@ typedef BOOL (WINAPI *GetModuleInformation_PROC)(
   DWORD cb                 // size of the structure
 );
 
-#define bufsizeof(buffer) (sizeof(buffer) / sizeof((buffer)[0]))
-
 /* This version can fail because PSAPI.DLL is not always part of NT 4 despite MSDN Libary 6.0a say so */
 
 static sal_Bool SAL_CALL _osl_addressGetModuleURL_NT( void *pv, rtl_uString **pustrURL )
diff --git a/sal/systools/win32/uwinapi/Uwinapi.h b/sal/systools/win32/uwinapi/Uwinapi.h
index eb2e6bf..2d0cadc 100644
--- a/sal/systools/win32/uwinapi/Uwinapi.h
+++ b/sal/systools/win32/uwinapi/Uwinapi.h
@@ -47,11 +47,6 @@ EXTERN_C WINBASEAPI LPWSTR WINAPI lstrrchrW( LPCWSTR lpString, WCHAR c );
 #define lstrchr		lstrchrA
 #endif
 
-// macro that calculates the count of elements of a static array
-
-#define bufsizeof(buf)	(sizeof(buf) / sizeof((buf)[0]))
-
-
 #define IsValidHandle(Handle)	((DWORD)(Handle) + 1 > 1)
 
 #ifdef __cplusplus
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to