Skip to content

Commit a67bd67

Browse files
committed
[APPROVAL] review/add-MSVC-to-BSLS_IDENT_PRAGMA_ONCE-drqs-59136351 to master
2 parents c586329 + 634142e commit a67bd67

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

groups/bsl/bsls/bsls_ident.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,8 @@ BSLS_IDENT_RCSID(sysutil_ident_h,"$Id: $")
252252
#define BSLS_IDENT_PRAGMA_ONCE
253253
#elif defined(__IBMC__) || defined(__IBMCPP__)
254254
#define BSLS_IDENT_PRAGMA_ONCE _Pragma("once")
255-
#elif (0 && defined(_MSC_VER))
256-
/* XXX: It's unclear what level of support Microsoft's compiler has for
257-
* _Pragma("once") - leave disabled for now.
258-
*/
259-
#define BSLS_IDENT_PRAGMA_ONCE _Pragma("once")
255+
#elif defined(_MSC_VER)
256+
#define BSLS_IDENT_PRAGMA_ONCE __pragma(once)
260257
#elif (defined(__HP_cc) && __HP_cc-0 >= 62500) \
261258
|| (defined(__HP_aCC) && __HP_aCC-0 >= 62500)
262259
/* supported in aCC A.06.25 (had not been fully supported in aCC A.06.20) */

0 commit comments

Comments
 (0)