From 00c10ca01835ce1676dfb0c3eb90c035389935e3 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 21 Dec 2006 18:02:23 +0000 Subject: [PATCH] fix SunCC compile --- algebra.cpp | 4 ++-- pkcspad.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/algebra.cpp b/algebra.cpp index 758939e6..78c3947b 100644 --- a/algebra.cpp +++ b/algebra.cpp @@ -2,8 +2,8 @@ #include "pch.h" -// prevent Sun's CC compiler from including this file automatically -#if !defined(__SUNPRO_CC) || defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) +#ifndef CRYPTOPP_ALGEBRA_CPP // SunCC workaround: compiler could cause this file to be included twice +#define CRYPTOPP_ALGEBRA_CPP #include "algebra.h" #include "integer.h" diff --git a/pkcspad.cpp b/pkcspad.cpp index d90e4aba..7cee9b95 100644 --- a/pkcspad.cpp +++ b/pkcspad.cpp @@ -2,8 +2,8 @@ #include "pch.h" -// prevent Sun's CC compiler from including this file automatically -#if !defined(__SUNPRO_CC) || defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) +#ifndef CRYPTOPP_PKCSPAD_CPP // SunCC workaround: compiler could cause this file to be included twice +#define CRYPTOPP_PKCSPAD_CPP #include "pkcspad.h" #include