Commits

Christos Kannas committed cc52382

Update: Write Extern "C" before kernel calling functions.

Comments (0)

Files changed (1)

src/code_cuda_c.c

     va_end( args );
 
     CommentFncBegin( f, vars );
-    bprintf("%s ", CUDA_C_function_qualifiers[q]);
+    if (q >= 0)
+        bprintf("%s ", CUDA_C_function_qualifiers[q]);
+    else
+        bprintf("extern \"C\"\n");
     C_FunctionStart( f, vars );
     bprintf("\n");
     bprintf("{\n");