summaryrefslogtreecommitdiff
path: root/sal/osl/w32/file_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/w32/file_error.c')
-rw-r--r--sal/osl/w32/file_error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/w32/file_error.c b/sal/osl/w32/file_error.c
index 3298ed5bb..5829aeac1 100644
--- a/sal/osl/w32/file_error.c
+++ b/sal/osl/w32/file_error.c
@@ -34,6 +34,7 @@
#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 +109,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 )