Skip to content

Commit

Permalink
Mac OS X: Attempting to fix a dlopen error
Browse files Browse the repository at this point in the history
For some reason the dynamic linker isn't finding a template-based
function.
  • Loading branch information
skyjake committed Oct 28, 2012
1 parent 2d8f05b commit 62ff412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/plugins/fmod/include/fmod_util.h
Expand Up @@ -49,7 +49,8 @@ class FMODVector : public FMOD_VECTOR {
}
};

template <typename T> void zeroStruct(T& t) {
template <typename T>
inline void zeroStruct(T& t) {
std::memset(&t, 0, sizeof(T));
t.cbsize = sizeof(T);
}
Expand Down

0 comments on commit 62ff412

Please sign in to comment.