Skip to content

Commit

Permalink
added extern for use code in c++
Browse files Browse the repository at this point in the history
  • Loading branch information
kala13x committed Apr 2, 2015
1 parent 023734f commit f0fa3b9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion slog.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@
---------------------------------------------------------------------------*/


/* For include header in CPP code */
#ifdef __cplusplus
extern "C" {
#endif


#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>

/* Definations for version info */
#define VERSION "0.2.1 Snapshot"
#define BUILD 14

Expand Down Expand Up @@ -63,4 +71,12 @@ void init_slog(char* fname, int to_file, int max);
/*---------------------------------------------
| Log exiting process
---------------------------------------------*/
void slog(int level, char *msg, ...);
void slog(int level, char *msg, ...);


/*---------------------------------------------
| For include header in CPP code
---------------------------------------------*/
#ifdef __cplusplus
}
#endif

0 comments on commit f0fa3b9

Please sign in to comment.