diff options
Diffstat (limited to 'sal/osl/w32/file_error.c')
-rw-r--r-- | sal/osl/w32/file_error.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sal/osl/w32/file_error.c b/sal/osl/w32/file_error.c index 26e749cc5451..42f57a5e839f 100644 --- a/sal/osl/w32/file_error.c +++ b/sal/osl/w32/file_error.c @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -27,13 +28,14 @@ #define UNICODE #define _UNICODE -#define _WIN32_WINNT_0x0500 +#define _WIN32_WINNT 0x0500 #include "systools/win32/uwinapi.h" #include "file_error.h" #include "osl/diagnose.h" #include "osl/thread.h" +#include <sal/macros.h> /* OS error to oslFileError values mapping table */ struct osl_file_error_entry @@ -108,7 +110,7 @@ static const struct osl_file_error_entry errtable[] = { oslFileError oslTranslateFileError (/*DWORD*/ unsigned long dwError) { - static const int n = sizeof(errtable)/sizeof(errtable[0]); + static const int n = SAL_N_ELEMENTS(errtable); int i; for (i = 0; i < n; ++i ) @@ -149,3 +151,5 @@ void _osl_warnFile( const char *message, rtl_uString *ustrFile ) OSL_ENSURE( 0, message ); } #endif /* OSL_DEBUG_LEVEL */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |