+#ifdef WINDOWSNT
+/* Encode the string STR using the specified coding system
+ for w32 system functions, if any. */
+#define ENCODE_SYSTEM(str) \
+ (! NILP (Vw32_system_coding_system) \
+ && XFASTINT (Vw32_system_coding_system) != 0 \
+ ? code_convert_string_norecord (str, Vw32_system_coding_system, 1) \
+ : str)
+
+/* Decode the string STR using the specified coding system
+ for w32 system functions, if any. */
+#define DECODE_SYSTEM(name) \
+ (! NILP (Vw32_system_coding_system) \
+ && XFASTINT (Vw32_system_coding_system) != 0 \
+ ? code_convert_string_norecord (str, Vw32_system_coding_system, 0) \
+ : str)
+#endif
+