Skip to content

Add support for C++#16

Open
rcastill wants to merge 2 commits into
rxi:masterfrom
rcastill:master
Open

Add support for C++#16
rcastill wants to merge 2 commits into
rxi:masterfrom
rcastill:master

Conversation

@rcastill

Copy link
Copy Markdown

Wrap log.h definitions in extern "C" if library compiled with C compiler and user compiling with C++ compiler.

@skyformat99

Copy link
Copy Markdown

very good

@chuckwolber

Copy link
Copy Markdown

FWIW, I have added this to my rolling-appender (#21 ) pull request.

Comment thread src/log.c
char buf[16];
buf[strftime(buf, sizeof(buf), "%H:%M:%S", lt)] = '\0';
char buf[32];
buf[strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", lt)] = '\0';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say, this is not related to the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants