Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

TortoiseUtils.h: Add guard around ARRAYSIZE macro

Changeset 4fa89d8d043f

Parent 5dc7e504a5e1

by Sune Foldager

Changes to one file · Browse files at 4fa89d8d043f Showing diff from parent 5dc7e504a5e1 Diff from another changeset...

 
14
15
16
 
17
 
18
19
20
 
14
15
16
17
18
19
20
21
22
@@ -14,7 +14,9 @@
 template <class T> T GET_SAFE( T a ) {EnterCriticalSection(&g_critSectionBreak); T z = a; LeaveCriticalSection(&g_critSectionBreak); return z;}  template <class T> void SET_SAFE( T & a , T b) {EnterCriticalSection(&g_critSectionBreak); a = b; LeaveCriticalSection(&g_critSectionBreak);}   +#ifndef ARRAYSIZE  #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0])) +#endif    extern int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, DWORD dwChars);  extern int WideCharToLocal(LPTSTR pLocal, LPWSTR pWide, DWORD dwChars);