Skip to content

Commit

Permalink
BACKENDS: Fix compilation with Unity
Browse files Browse the repository at this point in the history
 - Replace UNIX by POSIX
 - Move unity include to cpp file
 - Add exception for unistd.h and time.h headers
  • Loading branch information
Templier committed Jun 23, 2011
1 parent d9ede87 commit 2b01778
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion backends/taskbar/unity/unity-taskbar.cpp
Expand Up @@ -23,14 +23,18 @@
*
*/

#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
#include "common/scummsys.h"

#if defined(UNIX) && defined(USE_TASKBAR) && defined(USE_TASKBAR_UNITY)
#if defined(POSIX) && defined(USE_TASKBAR) && defined(USE_TASKBAR_UNITY)

#include "backends/taskbar/unity/unity-taskbar.h"

#include "common/textconsole.h"

#include <unity.h>

UnityTaskbarManager::UnityTaskbarManager() {
g_type_init();

Expand Down
5 changes: 3 additions & 2 deletions backends/taskbar/unity/unity-taskbar.h
Expand Up @@ -26,13 +26,14 @@
#ifndef BACKEND_UNITY_TASKBAR_H
#define BACKEND_UNITY_TASKBAR_H

#if defined(UNIX) && defined(USE_TASKBAR) && defined(USE_TASKBAR_UNITY)
#if defined(POSIX) && defined(USE_TASKBAR) && defined(USE_TASKBAR_UNITY)

#include "common/events.h"
#include "common/str.h"
#include "common/taskbar.h"

#include <unity.h>
typedef struct _GMainLoop GMainLoop;
typedef struct _UnityLauncherEntry UnityLauncherEntry;

class UnityTaskbarManager : public Common::TaskbarManager, public Common::EventSource {
public:
Expand Down

0 comments on commit 2b01778

Please sign in to comment.