diff --git a/samples/html/test/test.cpp b/samples/html/test/test.cpp
index d167408c47..8ac83bc75e 100644
--- a/samples/html/test/test.cpp
+++ b/samples/html/test/test.cpp
@@ -114,7 +114,7 @@
#if wxUSE_LIBJPEG
wxImage::AddHandler(new wxJPEGHandler);
#endif
- #if wxUSE_LIBGIF
+ #if wxUSE_GIF
wxImage::AddHandler(new wxGIFHandler);
#endif
// Create the main application window