win32: use _WIN32 macro instead of WIN32

parent e1f34777
......@@ -35,7 +35,7 @@
#include "linphonec.h"
#include "lpconfig.h"
#ifndef WIN32
#ifndef _WIN32
#include <sys/wait.h>
#include <unistd.h>
#endif
......@@ -118,7 +118,7 @@ static void linphonec_friend_display(LinphoneFriend *fr);
static int linphonec_friend_list(LinphoneCore *lc, char *arg);
static void linphonec_display_command_help(LPC_COMMAND *cmd);
static int linphonec_friend_call(LinphoneCore *lc, unsigned int num);
#ifndef WIN32
#ifndef _WIN32
static int linphonec_friend_add(LinphoneCore *lc, const char *name, const char *addr);
#endif
static int linphonec_friend_delete(LinphoneCore *lc, int num);
......@@ -949,7 +949,7 @@ lpc_cmd_firewall(LinphoneCore *lc, char *args)
return 1;
}
#ifndef WIN32
#ifndef _WIN32
/* Helper function for processing freind names */
static int
lpc_friend_name(char **args, char **name)
......@@ -1034,7 +1034,7 @@ lpc_cmd_friend(LinphoneCore *lc, char *args)
}
else if ( !strncmp(args, "add", 3) )
{
#ifndef WIN32
#ifndef _WIN32
char *name;
char addr[80];
char *addr_p = addr;
......@@ -1886,7 +1886,7 @@ linphonec_friend_call(LinphoneCore *lc, unsigned int num)
return 1;
}
#ifndef WIN32
#ifndef _WIN32
static int
linphonec_friend_add(LinphoneCore *lc, const char *name, const char *addr)
{
......@@ -2139,7 +2139,7 @@ static int lpc_cmd_param(LinphoneCore *lc, char *args)
}
static int lpc_cmd_speak(LinphoneCore *lc, char *args){
#ifndef WIN32
#ifndef _WIN32
char voice[64];
char *sentence;
char cl[128];
......
......@@ -38,7 +38,7 @@
#include "linphonec.h"
#ifdef WIN32
#ifdef _WIN32
#include <ws2tcpip.h>
#include <ctype.h>
#ifndef _WIN32_WCE
......@@ -439,7 +439,7 @@ static void start_prompt_reader(void){
#if !defined(_WIN32_WCE)
static ortp_pipe_t create_server_socket(void){
char path[128];
#ifndef WIN32
#ifndef _WIN32
snprintf(path,sizeof(path)-1,"linphonec-%i",getuid());
#else
{
......@@ -459,7 +459,7 @@ static void *pipe_thread(void*p){
if (server_sock==ORTP_PIPE_INVALID) return NULL;
while(pipe_reader_run){
while(client_sock!=ORTP_PIPE_INVALID){ /*sleep until the last command is finished*/
#ifndef WIN32
#ifndef _WIN32
usleep(20000);
#else
Sleep(20);
......@@ -537,7 +537,7 @@ char *linphonec_readline(char *prompt){
}
ms_mutex_unlock(&prompt_mutex);
linphonec_idle_call();
#ifdef WIN32
#ifdef _WIN32
{
MSG msg;
Sleep(20);
......
......@@ -25,7 +25,7 @@
#include <string.h>
#include <assert.h>
#ifdef WIN32
#ifdef _WIN32
#include <ws2tcpip.h>
#include <windows.h>
#include <winbase.h>
......@@ -82,7 +82,7 @@ static int send_command(const char *command, char *reply, int reply_len, int pri
int i;
int err;
char path[128];
#ifndef WIN32
#ifndef _WIN32
snprintf(path,sizeof(path)-1,"linphonec-%i",getuid());
#else
{
......@@ -130,7 +130,7 @@ static void print_usage(void){
exit(-1);
}
#ifdef WIN32
#ifdef _WIN32
static char *argv_to_line(int argc, char *argv[]) {
int i;
int line_length;
......@@ -157,7 +157,7 @@ static char *argv_to_line(int argc, char *argv[]) {
#define MAX_ARGS 10
#ifndef WIN32
#ifndef _WIN32
static void spawn_linphonec(int argc, char *argv[]){
char * args[MAX_ARGS];
int i,j;
......
......@@ -76,7 +76,7 @@ void call_accept(Call *call)
sdp_context_t *ctx;
PayloadType *payload;
char *hellofile;
static int call_count=0;
static int call_count=0;
char record_file[250];
osip_message_t *msg=NULL;
sprintf(record_file,"/tmp/sipomatic%i.wav",call_count);
......@@ -105,7 +105,7 @@ void call_accept(Call *call)
#ifdef VIDEO_ENABLED
if (call->video.remoteport!=0){
video_stream_send_only_start(call->video_stream,call->profile,
call->video.remaddr,call->video.remoteport,call->video.remoteport+1,call->video.pt, 60,
call->video.remaddr,call->video.remoteport,call->video.remoteport+1,call->video.pt, 60,
ms_web_cam_manager_get_default_cam(ms_web_cam_manager_get()));
}
#endif
......@@ -124,7 +124,7 @@ PayloadType * sipomatic_payload_is_supported(sdp_payload_t *payload,RtpProfile *
localpt=payload->pt;
ms_warning("payload has no rtpmap.");
}
if (localpt>=0){
/* this payload is supported in our local rtp profile, so add it to the dialog rtp
profile */
......@@ -160,7 +160,7 @@ int sipomatic_accept_audio_offer(sdp_context_t *ctx,sdp_payload_t *payload)
Call *call=(Call*)sdp_context_get_user_pointer(ctx);
PayloadType *supported;
struct stream_params *params=&call->audio;
/* see if this codec is supported in our local rtp profile*/
supported=sipomatic_payload_is_supported(payload,&av_profile,call->profile);
if (supported==NULL) {
......@@ -191,7 +191,7 @@ int sipomatic_accept_video_offer(sdp_context_t *ctx,sdp_payload_t *payload)
Call *call=(Call*)sdp_context_get_user_pointer(ctx);
PayloadType *supported;
struct stream_params *params=&call->video;
/* see if this codec is supported in our local rtp profile*/
supported=sipomatic_payload_is_supported(payload,&av_profile,call->profile);
if (supported==NULL) {
......@@ -221,9 +221,9 @@ void sipomatic_init(Sipomatic *obj, char *url, bool_t ipv6)
{
osip_uri_t *uri=NULL;
int port=5064;
obj->ipv6=ipv6;
if (url==NULL){
url=getenv("SIPOMATIC_URL");
if (url==NULL){
......@@ -237,7 +237,7 @@ void sipomatic_init(Sipomatic *obj, char *url, bool_t ipv6)
if (uri->port!=NULL) port=atoi(uri->port);
}else{
ms_warning("Invalid identity uri:%s",url);
}
}
}
ms_message("Starting using url %s",url);
ms_mutex_init(&obj->lock,NULL);
......@@ -324,7 +324,7 @@ Call * call_new(Sipomatic *root, eXosip_event_t *ev)
int status;
sdp_message_t *sdp;
sdp_context_t *sdpc;
sdp=eXosip_get_sdp_info(ev->request);
sdpc=sdp_handler_create_context(&sipomatic_sdp_handler,NULL,"sipomatic",NULL);
obj=ms_new0(Call,1);
......@@ -334,7 +334,7 @@ Call * call_new(Sipomatic *root, eXosip_event_t *ev)
sdpans=sdp_context_get_answer(sdpc,sdp);
if (sdpans!=NULL){
eXosip_call_send_answer(ev->tid,180,NULL);
}else{
status=sdp_context_get_status(sdpc);
eXosip_call_send_answer(ev->tid,status,NULL);
......@@ -409,7 +409,7 @@ int main(int argc, char *argv[])
char *url=NULL;
bool_t ipv6=FALSE;
int i;
for(i=1;i<argc;i++){
if ( (strcmp(argv[i],"-h")==0) || (strcmp(argv[i],"--help")==0) ){
display_help();
......@@ -441,7 +441,7 @@ int main(int argc, char *argv[])
continue;
}
}
signal(SIGINT,stop_handler);
ortp_init();
ms_init();
......@@ -453,18 +453,18 @@ int main(int argc, char *argv[])
rtp_profile_set_payload(&av_profile,101,&payload_type_telephone_event);
rtp_profile_set_payload(&av_profile,116,&payload_type_truespeech);
rtp_profile_set_payload(&av_profile,98,&payload_type_h263_1998);
sipomatic_init(&sipomatic,url,ipv6);
if (file!=NULL) sipomatic_set_annouce_file(&sipomatic,file);
while (run_cond){
sipomatic_iterate(&sipomatic);
#ifndef WIN32
#ifndef _WIN32
usleep(20000);
#else
Sleep(20);
#endif
}
return(0);
}
......@@ -68,7 +68,7 @@ static gchar *get_record_file(void){
time_t curtime=time(NULL);
struct tm loctime;
#ifdef WIN32
#ifdef _WIN32
loctime=*localtime(&curtime);
#else
localtime_r(&curtime,&loctime);
......@@ -296,7 +296,7 @@ void display_popup(GtkMessageType type,const gchar *message){
static void open_mixer(void){
GError *error = NULL;
#ifdef WIN32
#ifdef _WIN32
if(!g_spawn_command_line_async("control mmsys.cpl",&error)){
display_popup(GTK_MESSAGE_WARNING,_("Sound preferences not found "));
g_error_free(error);
......@@ -478,7 +478,7 @@ static void prepare(GtkAssistant *w){
void linphone_gtk_close_audio_assistant(GtkWidget *w){
gchar *path;
AudioStream *stream;
path = g_object_get_data(G_OBJECT(audio_assistant),"path");
if(path != NULL){
g_unlink(path);
......
......@@ -31,7 +31,7 @@ char *linphone_gtk_call_logs_storage_get_db_file(const char *filename){
if (access(CONFIG_FILE,F_OK)==0){
snprintf(db_file,path_max,"%s",filename);
}else{
#ifdef WIN32
#ifdef _WIN32
const char *appdata=getenv("APPDATA");
if (appdata){
snprintf(db_file,path_max,"%s\\%s",appdata,LINPHONE_CONFIG_DIR);
......
......@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <gtkosxapplication.h>
#endif
#if defined(WIN32) && !defined(F_OK)
#if defined(_WIN32) && !defined(F_OK)
#define F_OK 00 /*visual studio does not define F_OK*/
#endif
......@@ -65,7 +65,7 @@ char *linphone_gtk_message_storage_get_db_file(const char *filename){
if (access(CONFIG_FILE,F_OK)==0){
snprintf(db_file,path_max,"%s",filename);
}else{
#ifdef WIN32
#ifdef _WIN32
const char *appdata=getenv("APPDATA");
if (appdata){
snprintf(db_file,path_max,"%s\\%s",appdata,LINPHONE_CONFIG_DIR);
......
......@@ -720,17 +720,17 @@ void linphone_gtk_show_contact(LinphoneFriend *lf, GtkWidget *parent){
char *uri;
const char *name = linphone_friend_get_name(lf);
const LinphoneAddress *f_uri = linphone_friend_get_address(lf);
uri=linphone_address_as_string_uri_only(f_uri);
if (uri) {
gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(w,"sip_address")),uri);
ms_free(uri);
}
if (name){
gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(w,"name")),name);
}
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(linphone_gtk_get_widget(w,"show_presence")),
linphone_friend_get_send_subscribe(lf));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(linphone_gtk_get_widget(w,"allow_presence")),
......@@ -996,7 +996,7 @@ char *linphone_gtk_friends_storage_get_db_file(const char *filename){
if (access(CONFIG_FILE,F_OK)==0){
snprintf(db_file,path_max,"%s",filename);
}else{
#ifdef WIN32
#ifdef _WIN32
const char *appdata=getenv("APPDATA");
if (appdata){
snprintf(db_file,path_max,"%s\\%s",appdata,LINPHONE_CONFIG_DIR);
......@@ -1010,4 +1010,4 @@ char *linphone_gtk_friends_storage_get_db_file(const char *filename){
#endif
}
return db_file;
}
\ No newline at end of file
}
......@@ -32,7 +32,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#pragma GCC diagnostic pop
#endif
#ifdef WIN32
#ifdef _WIN32
// alloca is already defined by gtk
#undef alloca
#endif
......
......@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "linphone.h"
#ifndef WIN32
#ifndef _WIN32
#include <sys/stat.h>
#include <sys/types.h>
#endif
......@@ -88,7 +88,7 @@ static FILE *linphone_gtk_log_init(void)
/* arrange for _logdir to contain a
directory that has been created and _logfname to contain the
path to a file to which we will log */
#ifdef WIN32
#ifdef _WIN32
const char *appdata=getenv("LOCALAPPDATA");
if (appdata) {
snprintf(_logdir, sizeof(_logdir),"%s\\Linphone", appdata);
......@@ -115,7 +115,7 @@ static FILE *linphone_gtk_log_init(void)
}else if (linphone_logfile!=NULL){
snprintf(_logfname,sizeof(_logfname),"%s",linphone_logfile);
}
if (_logfname[0]!='\0'){
/* If the constant LOGFILE_ROTATION is greater than zero, then
we kick away a simple rotation that will ensure that there
......@@ -271,7 +271,7 @@ static void linphone_gtk_display_log(GtkTextView *v, OrtpLogLevel lev, const cha
gtk_text_buffer_get_iter_at_offset(b,&begin,off);
if (lev==ORTP_ERROR || lev==ORTP_FATAL) gtk_text_buffer_apply_tag_by_name(b,"red",&begin,&iter);
else if (lev==ORTP_WARNING) gtk_text_buffer_apply_tag_by_name(b,"orange",&begin,&iter);
while(gtk_text_buffer_get_char_count(b)>LOG_MAX_CHARS){
GtkTextIter iter_line_after;
gtk_text_buffer_get_start_iter(b,&iter);
......@@ -280,7 +280,7 @@ static void linphone_gtk_display_log(GtkTextView *v, OrtpLogLevel lev, const cha
gtk_text_buffer_delete(b,&iter,&iter_line_after);
}
}
}
static void stick_to_end(GtkTextView *v){
......@@ -334,7 +334,7 @@ void linphone_gtk_log_push(OrtpLogLevel lev, const char *fmt, va_list args){
struct timeval tp;
struct tm *lt;
time_t tt;
ortp_gettimeofday(&tp, NULL);
tt = (time_t)tp.tv_sec;
lt = localtime((const time_t*)&tt);
......
......@@ -27,7 +27,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <sys/types.h>
#include <sys/stat.h>
#ifndef WIN32
#ifndef _WIN32
#include <unistd.h>
#endif
......@@ -35,7 +35,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <gtkosxapplication.h>
#endif
#ifdef WIN32
#ifdef _WIN32
#define chdir _chdir
#include "direct.h"
#ifndef F_OK
......@@ -148,7 +148,7 @@ static GOptionEntry linphone_options[]={
#define RELATIVE_XML_DIR
#define BUILD_TREE_XML_DIR "gtk"
#ifndef WIN32
#ifndef _WIN32
#define CONFIG_FILE ".linphonerc"
#define SECRETS_FILE ".linphone-zidcache"
#define CERTIFICATES_PATH ".linphone-usr-crt"
......@@ -165,7 +165,7 @@ char *linphone_gtk_get_config_file(const char *filename){
if (g_path_is_absolute(filename)) {
snprintf(config_file,path_max,"%s",filename);
} else{
#ifdef WIN32
#ifdef _WIN32
const char *appdata=getenv("APPDATA");
if (appdata){
snprintf(config_file,path_max,"%s\\%s",appdata,LINPHONE_CONFIG_DIR);
......@@ -194,7 +194,7 @@ static const char *linphone_gtk_get_factory_config_file(void){
if (progpath != NULL) {
char *basename;
progdir = strdup(progpath);
#ifdef WIN32
#ifdef _WIN32
basename = strrchr(progdir, '\\');
if (basename != NULL) {
basename ++;
......@@ -252,7 +252,7 @@ gboolean linphone_gtk_get_audio_assistant_option(void){
}
static void linphone_gtk_init_liblinphone(const char *config_file,
const char *factory_config_file, const char *chat_messages_db_file,
const char *factory_config_file, const char *chat_messages_db_file,
const char *call_logs_db_file, const char *friends_db_file) {
LinphoneCoreVTable vtable={0};
gchar *secrets_file=linphone_gtk_get_config_file(SECRETS_FILE);
......@@ -837,7 +837,7 @@ gchar *linphone_gtk_get_record_path(const LinphoneAddress *address, gboolean is_
int i;
const char *ext="wav";
#ifdef WIN32
#ifdef _WIN32
loctime=*localtime(&curtime);
#else
localtime_r(&curtime,&loctime);
......@@ -1449,7 +1449,7 @@ void linphone_gtk_open_browser(const char *uri) {
g_warning("Could not open %s: %s", uri, error->message);
g_error_free(error);
}
#elif defined(WIN32)
#elif defined(_WIN32)
HINSTANCE instance = ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
if ((int)instance <= 32) {
g_warning("Could not open %s (error #%i)", uri, (int)instance);
......@@ -1840,7 +1840,7 @@ void linphone_gtk_show_keypad_checked(GtkCheckMenuItem *check_menu_item) {
void linphone_gtk_import_contacts(void) {
GtkWidget *mw = linphone_gtk_get_main_window();
GtkWidget *dialog = gtk_file_chooser_dialog_new("Open vCard file", (GtkWindow *)mw, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
if (gtk_dialog_run(GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
LinphoneCore *lc = linphone_gtk_get_core();
char *filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
......@@ -1856,7 +1856,7 @@ void linphone_gtk_export_contacts(void) {
GtkWidget *mw = linphone_gtk_get_main_window();
GtkWidget *dialog = gtk_file_chooser_dialog_new("Save vCards as", (GtkWindow *)mw, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL);
gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog), TRUE);
if (gtk_dialog_run(GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
LinphoneCore *lc = linphone_gtk_get_core();
char *filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
......@@ -2068,7 +2068,7 @@ static void sigint_handler(int signum){
}
static void populate_xdg_data_dirs_envvar(void) {
#ifndef WIN32
#ifndef _WIN32
int i;
gchar *value;
gchar **paths;
......@@ -2125,7 +2125,7 @@ int main(int argc, char *argv[]){
if (!lang) lang = g_getenv("LANG");
}
if (lang && lang[0]!='\0'){
#ifdef WIN32
#ifdef _WIN32
if (strncmp(lang,"zh",2)==0){
workaround_gtk_entry_chinese_bug=TRUE;
}
......@@ -2143,7 +2143,7 @@ int main(int argc, char *argv[]){
#else
g_message("NLS disabled.\n");
#endif
#ifdef WIN32
#ifdef _WIN32
gtk_rc_add_default_file("./gtkrc");
#endif
gdk_threads_enter();
......
......@@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <gtkosxapplication.h>
#endif
#if !defined(WIN32) && !defined(__APPLE__) && GLIB_CHECK_VERSION(2, 26, 0)
#if !defined(_WIN32) && !defined(__APPLE__) && GLIB_CHECK_VERSION(2, 26, 0)
#define STATUS_NOTIFIER_IS_USABLE 1
#endif
......
......@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "linphone.h"
#ifdef WIN32
#ifdef _WIN32
#include <wininet.h>
......@@ -27,13 +27,13 @@ static int linphone_gtk_create_version(const char *version_url, char *version, s
DWORD dwDownloaded = 0;
HINTERNET hSession = NULL, hConnect = NULL;
int ret=-1;
hSession=InternetOpen("Linphone",INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0);
if (hSession==NULL) return -1;
hConnect=InternetOpenUrl(hSession,version_url,NULL,0,0,0);
if (hConnect==NULL) {
InternetCloseHandle(hSession);
return -1;
......@@ -46,7 +46,7 @@ static int linphone_gtk_create_version(const char *version_url, char *version, s
if (strstr(version,"html")==0)
ret=0;
}
// Close any open handles.
if (hConnect) InternetCloseHandle(hConnect);
if (hSession) InternetCloseHandle(hSession);
......@@ -56,7 +56,7 @@ static int linphone_gtk_create_version(const char *version_url, char *version, s
#else
static int linphone_gtk_create_version(const char *url, char *version, size_t size){
return -1;
}
......
......@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#elif defined(WIN32)
#elif defined(_WIN32)
#include <gdk/gdkwin32.h>
#elif defined(__APPLE__)
extern void *gdk_quartz_window_get_nswindow(GdkWindow *window);
......@@ -103,7 +103,7 @@ static gboolean drag_drop(GtkWidget *widget, GdkDragContext *drag_context, gint
static void *get_native_handle(GdkWindow *gdkw){
#ifdef GDK_WINDOWING_X11
return (void *)GDK_WINDOW_XID(gdkw);
#elif defined(WIN32)
#elif defined(_WIN32)
return (void *)GDK_WINDOW_HWND(gdkw);
#elif defined(__APPLE__)
return (void *)gdk_quartz_window_get_nsview(gdkw);
......
mediastreamer2 @ 2900d2af
Subproject commit a3ef55cdb23f59600fe62d86f927d15754f5effd
Subproject commit 2900d2af5cedf1e8107bbb63291ddacf08d0a5c4
oRTP @ 140df465
Subproject commit b3d69baf234bb933fdd978cd9b132574f54e93ac
Subproject commit 140df4654b5bd9318273a6f08d1e0c0a2e639d43
......@@ -59,8 +59,6 @@ if(NOT IOS OR NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
endif()
endif()
add_definitions(-DBC_CONFIG_FILE="config.h")
if(IOS)
add_library(linphonetester STATIC ${SOURCE_FILES})
target_include_directories(linphonetester PUBLIC ${BCTOOLBOX_TESTER_INCLUDE_DIRS})
......
......@@ -74,7 +74,7 @@ RCFILES = \
IMAGE_FILES = images/nowebcamCIF.jpg
COMMON_FILE = common/vcards.vcf common/thousand_vcards.vcf
VCARDS_FILE = vcards/vcards.vcf vcards/thousand_vcards.vcf
EXTRA_DIST = tester_hosts\
messages.db\
......@@ -83,7 +83,7 @@ EXTRA_DIST = tester_hosts\
$(CERTIFICATE_FILES)\
$(RCFILES)\
$(IMAGE_FILES)\
$(COMMON_FILE)
$(VCARDS_FILE)
if ENABLE_TESTS
......@@ -99,8 +99,8 @@ rcfilesdir = $(datadir)/liblinphone_tester/rcfiles
rcfiles_DATA = $(RCFILES)
imagesdir = $(datadir)/liblinphone_tester/images
images_DATA = $(IMAGE_FILES)
commondir = $(datadir)/liblinphone_tester/common
common_DATA = $(COMMON_FILE)
vcardsdir = $(datadir)/liblinphone_tester/vcards
vcards_DATA = $(VCARDS_FILE)
# there are 2 targets: liblinphonetester.la and the executable liblinphone_tester
......@@ -147,7 +147,7 @@ liblinphone_testerdir = $(datadir)/liblinphone_tester
dist_liblinphone_tester_DATA = tester_hosts messages.db
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/coreapi -I$(top_srcdir)/tester/common
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/coreapi
AM_CFLAGS = -DBC_CONFIG_FILE=\"config.h\" $(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) \
-DIN_LINPHONE $(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) $(BCTOOLBOXTESTER_CFLAGS) \
$(BELLESIP_CFLAGS) $(LIBXML2_CFLAGS) $(SQLITE3_CFLAGS) $(BELCARD_CFLAGS)
......
This diff is collapsed.
......@@ -36,7 +36,7 @@ static bool_t dump_stats=FALSE;
static void stop(int signum){
running=FALSE;
}
#ifndef WIN32
#ifndef _WIN32
static void stats(int signum){
print_stats=TRUE;
}
......@@ -92,7 +92,7 @@ int main(int argc, char *argv[]){
policy.automatically_accept=TRUE;
signal(SIGINT,stop);
#ifndef WIN32
#ifndef _WIN32
signal(SIGUSR1,stats);
signal(SIGUSR2,dump_call_logs);
#endif
......
......@@ -23,9 +23,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "generator.hh"
#ifdef WIN32
#ifdef _WIN32
#include <direct.h>
#include <filesystem>
#define strncasecmp _strnicmp
#endif
......@@ -45,7 +44,7 @@ CplusplusGenerator::CplusplusGenerator(){
void CplusplusGenerator::generate(Project *proj){
list<Class*> classes=proj->getClasses();
mCurProj=proj;
#ifndef WIN32
#ifndef _WIN32
mkdir(proj->getName().c_str(),S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IROTH);
#else
_mkdir(proj->getName().c_str());
......@@ -184,7 +183,7 @@ JavascriptGenerator::JavascriptGenerator(){
void JavascriptGenerator::generate(Project *proj){
list<Class*> classes=proj->getClasses();
mCurProj=proj;
#ifndef WIN32
#ifndef _WIN32
remove(to_lower(proj->getName()).c_str());
mkdir(to_lower(proj->getName()).c_str(),S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IROTH);
#else
......
......@@ -22,7 +22,7 @@ MSList * PyList_AsMSListOfString(PyObject *pyl) {
static void pylinphone_dispatch_messages(void) {
#ifdef WIN32
#ifdef _WIN32
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, 1)) {
TranslateMessage(&msg);
......@@ -167,7 +167,7 @@ static PyObject * pylinphone_Call_get_native_video_window_id(PyObject *self, voi
pylinphone_dispatch_messages();
pyret = Py_BuildValue("k", (unsigned long)cresult);
pylinphone_trace(-1, "[PYLINPHONE] <<< %s -> %p", __FUNCTION__, pyret);
return pyret;
}
......@@ -513,7 +513,7 @@ static void pylinphone_Core_dealloc(PyObject *self) {
LinphoneCore * native_ptr = pylinphone_Core_get_native_ptr(self);
if (Py_REFCNT(self) < 0) return;
pylinphone_trace(1, "[PYLINPHONE] >>> %s(%p [%p])", __FUNCTION__, self, native_ptr);
if (native_ptr != NULL) {
linphone_core_destroy(native_ptr);
}
......
......@@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "gitversion.h"
#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment