summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2020-11-01 10:37:56 -0500
committerAllen Winter <allen.winter@kdab.com>2020-11-01 10:37:56 -0500
commit84564915950979d3fd66210b12c5c9aedc8314d4 (patch)
tree0841d7503bd5ef8c4c9a81f775716fef9c39a9f0
parent6e8ed4a840b2ab31b1b4968b8b66cc8273dbfb5e (diff)
parentab2a3b1a8010a1efdf1c3a8eb1ae43e111c87a7c (diff)
downloadlibical-git-84564915950979d3fd66210b12c5c9aedc8314d4.tar.gz
Merge branch '3.0'
-rw-r--r--cmake/modules/GObjectIntrospectionMacros.cmake2
-rw-r--r--src/libicalvcal/icalvcal.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmake/modules/GObjectIntrospectionMacros.cmake b/cmake/modules/GObjectIntrospectionMacros.cmake
index 1e7ecd79..83aff931 100644
--- a/cmake/modules/GObjectIntrospectionMacros.cmake
+++ b/cmake/modules/GObjectIntrospectionMacros.cmake
@@ -83,7 +83,7 @@ macro(gir_add_introspections introspections_girs)
-o ${CMAKE_CURRENT_BINARY_DIR}/${_typelib}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${gir}
OUTPUT ${_typelib}
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
list(APPEND _gir_typelibs ${CMAKE_CURRENT_BINARY_DIR}/${_typelib})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_typelib} DESTINATION ${LIB_INSTALL_DIR}/girepository-1.0)
diff --git a/src/libicalvcal/icalvcal.c b/src/libicalvcal/icalvcal.c
index cfe3d79a..1c330187 100644
--- a/src/libicalvcal/icalvcal.c
+++ b/src/libicalvcal/icalvcal.c
@@ -55,9 +55,9 @@ enum datatype
};
/* The indices must match between the strings and the codes. */
-static const char *weekdays[] = { "SU", "MO", "TU", "WE", "TH", "FR", "SA" };
+static const char weekdays[][3] = { "SU", "MO", "TU", "WE", "TH", "FR", "SA" };
-static int weekday_codes[] = {
+static const int weekday_codes[] = {
ICAL_SUNDAY_WEEKDAY,
ICAL_MONDAY_WEEKDAY,
ICAL_TUESDAY_WEEKDAY,