I'm building .lib (static library) for a large project and I'd like to hide some function to end user of the library, but I need those functions to be callable from every .c file inside the library (thus not static).
This is exactly opposite to __declspec(dllexport) and I've already found a solution for gcc.
I'd like to use static, but static function should be available only inside "current .c file", so this is not the way.
In another words: I need a way how can I tell Microsoft Visual C++ 2010 not to export some functions to final .lib (while keeping them available for all other .c files inside the project).
Note: I've never used __declspec (neither __attribute__( visibility)) in my whole solution, this is probably just some default setting associated with building static library (which I cannot trace).