Skip to content

Conversation

rcastill
Copy link

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

@skyformat99
Copy link

very good

@chuckwolber
Copy link

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

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

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