Index: mppenc/trunk/src/CMakeLists.txt
===================================================================
--- mppenc/trunk/src/CMakeLists.txt	(revision 100)
+++ mppenc/trunk/src/CMakeLists.txt	(revision 105)
@@ -1,7 +1,16 @@
 add_definitions(-DMPP_ENCODER -DFAST_MATH -DCVD_FASTLOG)
 add_executable(mppenc analy_filter encode_sv7 huffsv7 profile stderr winmsg ans fastmath keyboard psy tags bitstream fft4g mppenc psy_tab tools cvd fft_routines pipeopen quant wave_in)
+
+if(WIN32)
+target_link_libraries(mppenc winmm)
+endif(WIN32)
+
+if(NOT MSVC)
 target_link_libraries(mppenc m)
+endif(NOT MSVC)
+
 if(CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
 target_link_libraries(mppenc ossaudio)
 endif(CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
+
 install(TARGETS mppenc RUNTIME DESTINATION bin)
Index: mppenc/trunk/src/mppenc.h
===================================================================
--- mppenc/trunk/src/mppenc.h	(revision 100)
+++ mppenc/trunk/src/mppenc.h	(revision 105)
@@ -20,9 +20,4 @@
 #ifndef MPPENC_MPPENC_H
 #define MPPENC_MPPENC_H
-
-#ifdef _WIN32
-# define CVD_FASTLOG
-# define FAST_MATH
-#endif
 
 #include "mppdec.h"
