Computer/Tips

WIN32_LEAN_AND_MEAN

Hikai 2022. 12. 26. 14:52
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
  • 일부 사용하지 않는 Win32 API를 include에서 제외하여 header가 조금 더 가볍도록 하고 build time을 단축할 수 있음
  • Project 생성 시, Pre-compiled header를 선택한다면 stdafx.h에서 자동 설정됨