Skip to content

Commit

Permalink
Added missing copyright notices
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 14, 2014
1 parent ed02f61 commit f9a5896
Show file tree
Hide file tree
Showing 23 changed files with 359 additions and 35 deletions.
22 changes: 22 additions & 0 deletions include/SDL_name.h
@@ -1,3 +1,23 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/

#ifndef _SDLname_h_
#define _SDLname_h_
Expand All @@ -9,3 +29,5 @@
#define SDL_NAME(X) SDL_##X

#endif /* _SDLname_h_ */

/* vi: set ts=4 sw=4 expandtab: */
21 changes: 21 additions & 0 deletions src/audio/directsound/directx.h
@@ -1,3 +1,23 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/

#ifndef _directx_h
#define _directx_h
Expand Down Expand Up @@ -78,4 +98,5 @@
#include <dinput.h>

#endif /* _directx_h */

/* vi: set ts=4 sw=4 expandtab: */
21 changes: 21 additions & 0 deletions src/audio/xaudio2/SDL_xaudio2_winrthelpers.cpp
@@ -1,3 +1,24 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "../../SDL_internal.h"

#include <xaudio2.h>
#include "SDL_xaudio2_winrthelpers.h"
Expand Down
20 changes: 19 additions & 1 deletion src/audio/xaudio2/SDL_xaudio2_winrthelpers.h
@@ -1,5 +1,23 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
#pragma once
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/

//
// Re-implementation of methods removed from XAudio2 (in WinRT):
Expand Down
23 changes: 22 additions & 1 deletion src/core/winrt/SDL_winrtapp_common.cpp
@@ -1,5 +1,26 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
#include <SDL_system.h>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "../../SDL_internal.h"

#include "SDL_system.h"
#include "SDL_winrtapp_direct3d.h"
#include "SDL_winrtapp_xaml.h"

Expand Down
23 changes: 22 additions & 1 deletion src/core/winrt/SDL_winrtapp_direct3d.cpp
@@ -1,4 +1,25 @@

/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "../../SDL_internal.h"

/* Standard C++11 includes */
#include <functional>
#include <string>
Expand Down
20 changes: 19 additions & 1 deletion src/core/winrt/SDL_winrtapp_direct3d.h
@@ -1,5 +1,23 @@
#pragma once
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include <Windows.h>

extern int SDL_WinRTInitNonXAMLApp(int (*mainFunction)(int, char **));
Expand Down
23 changes: 22 additions & 1 deletion src/file/cocoa/SDL_rwopsbundlesupport.h
@@ -1,4 +1,25 @@
#ifdef __APPLE__
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/

#ifdef __MACOSX__

#include <stdio.h>

Expand Down
29 changes: 27 additions & 2 deletions src/file/cocoa/SDL_rwopsbundlesupport.m
@@ -1,4 +1,26 @@
#ifdef __APPLE__
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "../../SDL_internal.h"

#ifdef __MACOSX__
#import <Foundation/Foundation.h>

#include "SDL_rwopsbundlesupport.h"
Expand Down Expand Up @@ -42,4 +64,7 @@

return fp;
}
#endif

#endif /* __MACOSX__ */

/* vi: set ts=4 sw=4 expandtab: */
24 changes: 22 additions & 2 deletions src/filesystem/winrt/SDL_sysfilesystem.cpp
@@ -1,9 +1,29 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "../../SDL_internal.h"

/* TODO, WinRT: include copyright info in SDL_winrtpaths.cpp
TODO, WinRT: remove the need to compile this with C++/CX (/ZW) extensions, and if possible, without C++ at all
*/

#include "../../SDL_internal.h"

#ifdef __WINRT__

extern "C" {
Expand Down
4 changes: 3 additions & 1 deletion src/main/android/SDL_android_main.c
@@ -1,4 +1,6 @@

/*
SDL_android_main.c, placed in the public domain by Sam Lantinga 3/13/14
*/
#include "../../SDL_internal.h"

#ifdef __ANDROID__
Expand Down
5 changes: 4 additions & 1 deletion src/main/dummy/SDL_dummy_main.c
@@ -1,6 +1,9 @@
/*
SDL_dummy_main.c, placed in the public domain by Sam Lantinga 3/13/14
*/
#include "../../SDL_internal.h"

/* Include the SDL main definition header */
#include "../../SDL_internal.h"
#include "SDL_main.h"

#ifdef main
Expand Down
1 change: 0 additions & 1 deletion src/main/haiku/SDL_BeApp.h
Expand Up @@ -20,7 +20,6 @@
*/
#include "../../SDL_internal.h"


#ifdef __cplusplus
extern "C" {
#endif
Expand Down
19 changes: 1 addition & 18 deletions src/main/psp/SDL_psp_main.c
@@ -1,22 +1,5 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
SDL_psp_main.c, placed in the public domain by Sam Lantinga 3/13/14
*/

#include "SDL_main.h"
Expand Down
2 changes: 1 addition & 1 deletion src/main/windows/SDL_windows_main.c
@@ -1,5 +1,5 @@
/*
SDL_main.c, placed in the public domain by Sam Lantinga 4/13/98
SDL_windows_main.c, placed in the public domain by Sam Lantinga 4/13/98
The WinMain function -- calls your program's main() function
*/
Expand Down
6 changes: 5 additions & 1 deletion src/main/winrt/SDL_winrt_main_NonXAML.cpp
@@ -1,5 +1,9 @@
/*
SDL_winrt_main_NonXAML.cpp, placed in the public domain by David Ludwig 3/13/14
*/
#include "../../../SDL_internal.h"

#include <SDL_main.h>
#include "SDL_main.h"
#include <wrl.h>

/* At least one file in any SDL/WinRT app appears to require compilation
Expand Down
21 changes: 21 additions & 0 deletions src/render/opengl/SDL_glfuncs.h
@@ -1,3 +1,24 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/

/* list of OpenGL functions sorted alphabetically
If you need to use a GL function from the SDL video subsystem,
change its entry from SDL_PROC_UNUSED to SDL_PROC and rebuild.
Expand Down

0 comments on commit f9a5896

Please sign in to comment.