--- a/js/src/jsatom.h
+++ b/js/src/jsatom.h
@@ -456,23 +456,27 @@ js_FinishCommonAtoms(JSContext *cx);
/*
* Find or create the atom for a double value. Return null on failure to
* allocate memory.
*/
extern JSAtom *
js_AtomizeDouble(JSContext *cx, jsdouble d);
+JS_END_EXTERN_C
+
/*
* Find or create the atom for a string. Return null on failure to allocate
* memory.
*/
extern JSAtom *
js_AtomizeString(JSContext *cx, JSString *str, uintN flags);
+JS_BEGIN_EXTERN_C
+
extern JSAtom *
js_Atomize(JSContext *cx, const char *bytes, size_t length, uintN flags);
extern JSAtom *
js_AtomizeChars(JSContext *cx, const jschar *chars, size_t length, uintN flags);
/*
* Return an existing atom for the given char array or null if the char