Skip to content

Commit fda95c7

Browse files
author
Rye
committed
Clean up old __GNUC__ compiler hacks
1 parent 68728a6 commit fda95c7

File tree

8 files changed

+0
-87
lines changed

8 files changed

+0
-87
lines changed

indra/llaudio/llvorbisencode.cpp

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -34,38 +34,6 @@
3434
#include "llmath.h"
3535
#include "llapr.h"
3636

37-
//#if LL_DARWIN
38-
// MBW -- XXX -- Getting rid of SecondLifeVorbis for now
39-
#if 0
40-
#include "VorbisFramework.h"
41-
42-
#define vorbis_analysis mac_vorbis_analysis
43-
#define vorbis_analysis_headerout mac_vorbis_analysis_headerout
44-
#define vorbis_analysis_init mac_vorbis_analysis_init
45-
#define vorbis_encode_ctl mac_vorbis_encode_ctl
46-
#define vorbis_encode_setup_init mac_vorbis_encode_setup_init
47-
#define vorbis_encode_setup_managed mac_vorbis_encode_setup_managed
48-
49-
#define vorbis_info_init mac_vorbis_info_init
50-
#define vorbis_info_clear mac_vorbis_info_clear
51-
#define vorbis_comment_init mac_vorbis_comment_init
52-
#define vorbis_comment_clear mac_vorbis_comment_clear
53-
#define vorbis_block_init mac_vorbis_block_init
54-
#define vorbis_block_clear mac_vorbis_block_clear
55-
#define vorbis_dsp_clear mac_vorbis_dsp_clear
56-
#define vorbis_analysis_buffer mac_vorbis_analysis_buffer
57-
#define vorbis_analysis_wrote mac_vorbis_analysis_wrote
58-
#define vorbis_analysis_blockout mac_vorbis_analysis_blockout
59-
60-
#define ogg_stream_packetin mac_ogg_stream_packetin
61-
#define ogg_stream_init mac_ogg_stream_init
62-
#define ogg_stream_flush mac_ogg_stream_flush
63-
#define ogg_stream_pageout mac_ogg_stream_pageout
64-
#define ogg_page_eos mac_ogg_page_eos
65-
#define ogg_stream_clear mac_ogg_stream_clear
66-
67-
#endif
68-
6937
S32 check_for_invalid_wav_formats(const std::string& in_fname, std::string& error_msg)
7038
{
7139
U16 num_channels = 0;

indra/llcommon/lldate.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ void LLDate::toStream(std::ostream& s) const
124124
}
125125

126126
s << std::dec << std::setfill('0');
127-
#if( LL_WINDOWS || __GNUC__ > 2)
128127
s << std::right;
129-
#else
130-
s.setf(ios::right);
131-
#endif
132128
s << std::setw(4) << (exp_time.tm_year + 1900)
133129
<< '-' << std::setw(2) << (exp_time.tm_mon + 1)
134130
<< '-' << std::setw(2) << (exp_time.tm_mday)

indra/llcommon/llsdserialize.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,11 +1424,7 @@ S32 LLSDNotationFormatter::format_impl(const LLSD& data, std::ostream& ostr,
14241424

14251425
case LLSD::TypeBoolean:
14261426
if(mBoolAlpha ||
1427-
#if( LL_WINDOWS || __GNUC__ > 2)
14281427
(ostr.flags() & std::ios::boolalpha)
1429-
#else
1430-
(ostr.flags() & 0x0100)
1431-
#endif
14321428
)
14331429
{
14341430
ostr << (data.asBoolean()

indra/llcommon/llstl.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -522,18 +522,8 @@ llbind2nd(const _Operation& __oper, const _Tp& __x)
522522
inline
523523
bool before(const std::type_info* lhs, const std::type_info* rhs)
524524
{
525-
#if LL_LINUX && defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
526-
// If we're building on Linux with gcc, and it's either gcc 3.x or
527-
// 4.{0,1,2,3}, then we have to use a workaround. Note that we use gcc on
528-
// Mac too, and some people build with gcc on Windows (cygwin or mingw).
529-
// On Linux, different load modules may produce different type_info*
530-
// pointers for the same type. Have to compare name strings to get good
531-
// results.
532-
return strcmp(lhs->name(), rhs->name()) < 0;
533-
#else // not Linux, or gcc 4.4+
534525
// Just use before(), as we normally would
535526
return lhs->before(*rhs);
536-
#endif
537527
}
538528

539529
/**

indra/llmessage/llbufferstream.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,10 @@ int LLBufferStreamBuf::sync()
234234
}
235235

236236
// virtual
237-
#if( LL_WINDOWS || __GNUC__ > 2)
238237
LLBufferStreamBuf::pos_type LLBufferStreamBuf::seekoff(
239238
LLBufferStreamBuf::off_type off,
240239
std::ios::seekdir way,
241240
std::ios::openmode which)
242-
#else
243-
streampos LLBufferStreamBuf::seekoff(
244-
streamoff off,
245-
std::ios::seekdir way,
246-
std::ios::openmode which)
247-
#endif
248241
{
249242
if(!mBuffer
250243
|| ((way == std::ios::beg) && (off < 0))
@@ -319,12 +312,8 @@ streampos LLBufferStreamBuf::seekoff(
319312
}
320313
}
321314

322-
#if( LL_WINDOWS || __GNUC__ > 2 )
323315
S32 rv = (S32)(intptr_t)address;
324316
return (pos_type)rv;
325-
#else
326-
return (streampos)address;
327-
#endif
328317
}
329318

330319

indra/llmessage/llbufferstream.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ class LLBufferStreamBuf : public std::streambuf
4848
virtual ~LLBufferStreamBuf();
4949

5050
protected:
51-
#if( LL_WINDOWS || __GNUC__ > 2 )
5251
typedef std::streambuf::pos_type pos_type;
5352
typedef std::streambuf::off_type off_type;
54-
#endif
5553

5654
/* @name streambuf vrtual implementations
5755
*/
@@ -87,17 +85,10 @@ class LLBufferStreamBuf : public std::streambuf
8785
* or both masked together.
8886
* @return Returns the new position or an invalid position on failure.
8987
*/
90-
#if( LL_WINDOWS || __GNUC__ > 2)
9188
virtual pos_type seekoff(
9289
off_type off,
9390
std::ios::seekdir way,
9491
std::ios::openmode which);
95-
#else
96-
virtual streampos seekoff(
97-
streamoff off,
98-
std::ios::seekdir way,
99-
std::ios::openmode which);
100-
#endif
10192

10293
/*
10394
* @brief Get s sequence of characters from the input

indra/llrender/llgl.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,17 +1116,6 @@ bool LLGLManager::initGL()
11161116
if (mGLVersion >= 2.f)
11171117
{
11181118
parse_glsl_version(mGLSLVersionMajor, mGLSLVersionMinor);
1119-
1120-
#if 0 && LL_DARWIN
1121-
// TODO maybe switch to using a core profile for GL 3.2?
1122-
// https://stackoverflow.com/a/19868861
1123-
//never use GLSL greater than 1.20 on OSX
1124-
if (mGLSLVersionMajor > 1 || mGLSLVersionMinor > 30)
1125-
{
1126-
mGLSLVersionMajor = 1;
1127-
mGLSLVersionMinor = 30;
1128-
}
1129-
#endif
11301119
}
11311120

11321121
if (mGLVersion >= 2.1f && LLImageGL::sCompressTextures)

indra/newview/llviewerjointmesh.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@
5656
#include "llmatrix4a.h"
5757
#include "llperfstats.h"
5858

59-
#if !LL_DARWIN && !LL_LINUX
60-
extern PFNGLWEIGHTPOINTERARBPROC glWeightPointerARB;
61-
extern PFNGLWEIGHTFVARBPROC glWeightfvARB;
62-
extern PFNGLVERTEXBLENDARBPROC glVertexBlendARB;
63-
#endif
64-
6559
//-----------------------------------------------------------------------------
6660
//-----------------------------------------------------------------------------
6761
// LLViewerJointMesh

0 commit comments

Comments
 (0)