Skip to content

Commit

Permalink
Content of cu.h is enclosed by 'extern "C"' if c++ compiler is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfis committed Jul 18, 2008
1 parent 108882f commit 508b28e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cu.h
Expand Up @@ -23,6 +23,10 @@
#ifndef _CU_H_
#define _CU_H_

#ifdef __cplusplus
extern "C" {
#endif

/***** PUBLIC API *****/
/**
* Define test
Expand Down Expand Up @@ -131,4 +135,8 @@ void cu_success_assertation(void);
void cu_fail_assertation(const char *file, int line, const char *msg);
void cu_set_out_prefix(const char *str);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif

0 comments on commit 508b28e

Please sign in to comment.