- strcpy(lpSnd, m_sndname);
- c2pstr((char *) lpSnd);
- SndListHandle hSnd;
-
- hSnd = (SndListHandle) GetNamedResource('snd ',(const unsigned char *) lpSnd);
+#if TARGET_CARBON
+ c2pstrcpy((unsigned char *)lpSnd, m_sndname);
+#else
+ strcpy(lpSnd, m_sndname);
+ c2pstr((char *) lpSnd);
+#endif
+ SndListHandle hSnd;
+
+ hSnd = (SndListHandle) GetNamedResource('snd ',(const unsigned char *) lpSnd);