Re: Please change SDK header fiels to contain #pragma once at start of file
Maybe consider header guards, which are for sure a common practice in C++ development and not compiler dependent:
Anyway, we worked around the issue to avoid the massive amount of redefinition errors one quickly gets without one of these. Other people that might encounter same issue can quickly construct an innovaphone.h file in their project with following content:
#pragma once
//Important: order does matter!
#include "platform/platform.h"
#include "common/os/iomux.h"
#include "common/interface/task.h"
#include "common/interface/socket.h"
#include "common/interface/webserver_plugin.h"
#include "common/interface/database.h"
#include "common/interface/json_api.h"
#include "common/ilib/str.h"
#include "common/ilib/json.h"
#include "common/interface/random.h"
#include "common/interface/pbx_admin.h"
#include "common/lib/appservice.h"
#include "common/lib/config.h"
#include "common/lib/tasks_postgresql.h"
#include "common/lib/appwebsocket.h"
#include "common/lib/app_updates.h"
#include "common/lib/badgecount_signaling.h"
After that, just use #include innovaphone.h which makes life easier.
Anyway, just something that would make life easier... case closed.