[windows] - fixups for building on windows
[deb_shairplay.git] / src / lib / base64.c
index 786e445abfec8d8166a603d58b0fcda95d279e1b..8ced9003bc3285d0261e50113a4b3545a8728131 100644 (file)
@@ -1,3 +1,17 @@
+/**
+ *  Copyright (C) 2011-2012  Juho Vähä-Herttua
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2.1 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ */
+
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
@@ -18,9 +32,7 @@ struct base64_s {
        int skip_spaces;
 };
 
-static base64_t default_base64 =
-       { .charlist = DEFAULT_CHARLIST,
-         .use_padding = 1 };
+static base64_t default_base64 = {DEFAULT_CHARLIST, "", 0, 1, 0};
 
 static void
 initialize_charmap(base64_t *base64)