]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/events.c
Ignore UTF-8 marker at the start of .conf files.
[bacula/bacula] / bacula / src / lib / events.c
index 187793e2ea8cc57213a862cffce19cd87d4f21b8..c89c413f02437dcc2d86771a5a0f65dccbeca31a 100644 (file)
@@ -138,9 +138,7 @@ bailout:
 
 #endif /* IMPLEMENTED */
 
-#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
-
-#include <windows.h>
+#if defined(HAVE_WIN32)
 
 extern UPSINFO myUPS;
 extern int shm_OK;
@@ -158,7 +156,7 @@ void FillEventsBox(HWND hwnd, int idlist)
     if (!shm_OK || myUPS.eventfile[0] == 0 ||
        (events_file = fopen(myUPS.eventfile, "r")) == NULL) {
        SendDlgItemMessage(hwnd, idlist, LB_ADDSTRING, 0,
-          (LONG)"Events not available");
+          (LONG)_("Events not available"));
        return;
     }
 
@@ -172,4 +170,4 @@ void FillEventsBox(HWND hwnd, int idlist)
     return;
 }
 
-#endif /* HAVE_CYGWIN */
+#endif /* HAVE_WIN32 */