Skip to content

Commit 89c9edc

Browse files
author
tnarine-amd
committed
git subtree pull latest AMF shared code in preparation for 1.4.7 release.
Merge commit '4248f048a11144c514a3029e24b7c94f7c61f031'
2 parents 801247d + 4248f04 commit 89c9edc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+502
-209
lines changed

amf/public/common/AMFFactory.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3030
// THE SOFTWARE.
3131
//
32+
#ifndef AMF_AMFFactory_h
33+
#define AMF_AMFFactory_h
3234

3335
#pragma once
3436

@@ -80,3 +82,4 @@ class AMFFactoryHelper
8082
};
8183

8284
extern ::AMFFactoryHelper g_AMFFactory;
85+
#endif // AMF_AMFFactory_h

amf/public/common/AMFSTL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extern "C"
5050
extern int vscwprintf(const wchar_t* p_fmt, va_list p_args);
5151
extern int vscprintf(const char* p_fmt, va_list p_args);
5252
}
53-
#elif _MSC_VER <= 1911
53+
#elif _MSC_VER <= 1912
5454
#define snprintf _snprintf
5555
#define vscprintf _vscprintf
5656
#define vscwprintf _vscwprintf // Count chars without writing to string

amf/public/common/AMFSTL.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
// THE SOFTWARE.
3131
//
3232

33-
#ifndef __AMFSTL_h__
34-
#define __AMFSTL_h__
33+
#ifndef AMF_AMFSTL_h
34+
#define AMF_AMFSTL_h
3535
#pragma once
3636

3737
#if defined(__GNUC__)
@@ -309,5 +309,5 @@ namespace amf
309309
#pragma GCC diagnostic pop
310310
#endif
311311

312-
#endif // __AMFSTL_h__
312+
#endif // AMF_AMFSTL_h
313313

amf/public/common/ByteArray.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
// THE SOFTWARE.
3131
//
3232

33+
#ifndef AMF_ByteArray_h
34+
#define AMF_ByteArray_h
35+
36+
3337
#pragma once
3438
#include "../include/core/Platform.h"
3539
#define INIT_ARRAY_SIZE 1024
@@ -105,3 +109,4 @@ class AMFByteArray
105109
amf_uint8 *GetData() const { return m_pData; }
106110
amf_size GetSize() const { return m_iSize; }
107111
};
112+
#endif // AMF_ByteArray_h

amf/public/common/CurrentTime.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
// THE SOFTWARE.
2121
//
2222

23-
#ifndef __AMFCurrentTime_h__
24-
#define __AMFCurrentTime_h__
23+
#ifndef AMF_CurrentTime_h
24+
#define AMF_CurrentTime_h
2525

2626
#include "public/include/core/Platform.h"
2727
#include "public/include/core/Interface.h"
@@ -49,4 +49,4 @@ namespace amf
4949
typedef AMFInterfacePtr_T<AMFCurrentTime> AMFCurrentTimePtr;
5050
//----------------------------------------------------------------------------------------------}
5151
}
52-
#endif // __AMFCurrentTime_h__
52+
#endif // AMF_CurrentTime_h

amf/public/common/CurrentTimeImpl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
// THE SOFTWARE.
2121
//
2222

23-
#ifndef __AMFCurrentTimeImpl_h__
24-
#define __AMFCurrentTimeImpl_h__
23+
#ifndef AMF_CurrentTimeImpl_h
24+
#define AMF_CurrentTimeImpl_h
2525

2626
#include "public/common/CurrentTime.h"
2727
#include "public/common/InterfaceImpl.h"
@@ -55,4 +55,4 @@ class AMFCurrentTimeImpl : public AMFInterfaceImpl<AMFCurrentTime>
5555
typedef AMFInterfacePtr_T<AMFCurrentTime> AMFCurrentTimePtr;
5656
//----------------------------------------------------------------------------------------------}
5757
}
58-
#endif // __AMFCurrentTimeImpl_h__
58+
#endif // AMF_CurrentTimeImpl_h

amf/public/common/DataStream.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
* @brief AMFDataStream declaration
3737
***************************************************************************************************
3838
*/
39-
#ifndef __AMFDataStream_h__
40-
#define __AMFDataStream_h__
39+
#ifndef AMF_DataStream_h
40+
#define AMF_DataStream_h
4141
#pragma once
4242

4343
#include "../include/core/Interface.h"
@@ -106,4 +106,4 @@ namespace amf
106106

107107
} //namespace amf
108108

109-
#endif // __AMFDataStream_h__
109+
#endif // AMF_DataStream_h

amf/public/common/DataStreamFile.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
// THE SOFTWARE.
3131
//
3232

33+
#ifndef AMF_DataStreamFile_h
34+
#define AMF_DataStreamFile_h
35+
3336
#pragma once
3437

3538
#include "DataStream.h"
@@ -60,3 +63,4 @@ namespace amf
6063
std::wstring m_Path;
6164
};
6265
} //namespace amf
66+
#endif // AMF_DataStreamFile_h

amf/public/common/DataStreamMemory.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
// THE SOFTWARE.
3131
//
3232

33+
#ifndef AMF_DataStreamMemory_h
34+
#define AMF_DataStreamMemory_h
35+
3336
#pragma once
3437

3538
#include "DataStream.h"
@@ -70,3 +73,5 @@ namespace amf
7073
AMFDataStreamMemoryImpl& operator=(const AMFDataStreamMemoryImpl&);
7174
};
7275
} //namespace amf
76+
77+
#endif // AMF_DataStreamMemory_h

amf/public/common/IOCapsImpl.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
// THE SOFTWARE.
3131
//
3232

33+
#ifndef AMF_IOCapsImpl_h
34+
#define AMF_IOCapsImpl_h
35+
3336
#pragma once
3437

3538
#include "InterfaceImpl.h"
@@ -126,3 +129,4 @@ namespace amf
126129
MemoryType::Collection m_MemoryTypes;
127130
};
128131
}
132+
#endif // AMF_IOCapsImpl_h

0 commit comments

Comments
 (0)