TPT: Fix crash when pasting text on platforms which don't support it d0b57d7d99

This commit is contained in:
Simon Robertshaw 2012-06-12 17:27:21 +01:00
parent 50a587813e
commit 20e85066dc

View File

@ -406,6 +406,7 @@ void clipboard_push_text(char * text)
char * clipboard_pull_text()
{
#ifdef MACOSX
printf("Not implemented: get text from clipboard\n");
#elif defined WIN32
if (OpenClipboard(NULL))
{
@ -423,10 +424,11 @@ char * clipboard_pull_text()
}
}
#elif (defined(LIN32) || defined(LIN64)) && defined(SDL_VIDEO_DRIVER_X11)
printf("Not implemented: get text from clipboard\n");
#else
printf("Not implemented: get text from clipboard\n");
return "";
#endif
return "";
}
int register_extension()