Extracted extern C to the right position.