bugfix linker problem mix c cpp function
This commit is contained in:
parent
5ea437c170
commit
d66e402cad
|
@ -1,6 +1,9 @@
|
|||
#ifndef __SKETCH_h__
|
||||
#define __SKETCH_h__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
int color_rgb_from_string (const char *r, const char *g, const char *b);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -77,7 +77,7 @@ color_from_string (const char *name, const char *uri, const char *s)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
extern "C" int
|
||||
color_rgb_from_string (const char *r, const char *g, const char *b)
|
||||
{
|
||||
color_rgb [0] = atoi (r);
|
||||
|
|
Loading…
Reference in a new issue