Skip to content

Commit

Permalink
Fix a pair of missed extern "C" decls.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Jan 26, 2023
1 parent 17820ec commit f8465da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion borrowed/libc/strptime.h
Expand Up @@ -25,6 +25,10 @@
#ifndef __STRPTIME_H__
#define __STRPTIME_H__

#ifdef __cplusplus
extern "C"
{
#endif
/*
* Version of "strptime()", for the benefit of OSes that don't have it.
*/
Expand All @@ -34,5 +38,7 @@ extern char *strptime(const char *, const char *, struct tm *);
extern char *get_win32_locale_string(int lctype);
extern char *translate_win32_picture(const char *);
#endif

#ifdef __cplusplus
}
#endif
#endif
3 changes: 3 additions & 0 deletions gnucash/gnome/assistant-stock-transaction.cpp
Expand Up @@ -44,10 +44,13 @@

static QofLogModule log_module = GNC_MOD_ASSISTANT;

extern "C"
{
void stock_assistant_prepare (GtkAssistant *assistant, GtkWidget *page,
gpointer user_data);
void stock_assistant_finish (GtkAssistant *assistant, gpointer user_data);
void stock_assistant_cancel (GtkAssistant *gtkassistant, gpointer user_data);
}

enum class FieldMask : unsigned;
bool operator &(FieldMask lhs, FieldMask rhs);
Expand Down

0 comments on commit f8465da

Please sign in to comment.