Review Request 114964: Fix duplicated typedef for ssize_t on MSVC for python backend

Albert Astals Cid aacid at kde.org
Sat Jan 11 16:59:56 UTC 2014



> On Jan. 11, 2014, 2:52 p.m., Albert Astals Cid wrote:
> > src/backends/python2/CMakeLists.txt, line 15
> > <https://git.reviewboard.kde.org/r/114964/diff/1/?file=233720#file233720line15>
> >
> >     Shouldn't this go into the kdewin include files then?
> 
> Andrius da Costa Ribas wrote:
>     kdewin does this
>     http://quickgit.kde.org/?p=kdewin.git&a=blob&h=056cd64165e3e5c76d7878c13806551dca7c3182&hb=ae1c0ac291cc97d432b73091bb17b32120038b6c&f=include%2Fmsvc%2Fsys%2Ftypes.h
>     
>     #ifndef _SSIZE_T_DEFINED
>     #define _SSIZE_T_DEFINED
>     typedef SSIZE_T ssize_t;
>     #endif
>     
>     the problem is that the python one doesn't.
>
> 
> Albert Astals Cid wrote:
>     Ah, i see what you mean. Quick question, how does kdewin headers end up in cantor?
> 
> Andrius da Costa Ribas wrote:
>     kdewin's include/msvc include path is part of ${KDE4_INCLUDES}
>     Python's Python.h includes "limits.h" which is in present in include/msvc include path, this then which includes "sys/types.h", also from kdewin.

Ok, makes sense to me, but I'm not one of the cantor devels, so I'll wait for them to give you the "Ship it". If they don't show up in a few days/weeks ping me and we'll see what we can do.


- Albert


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/114964/#review47190
-----------------------------------------------------------


On Jan. 11, 2014, 2:37 p.m., Andrius da Costa Ribas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/114964/
> -----------------------------------------------------------
> 
> (Updated Jan. 11, 2014, 2:37 p.m.)
> 
> 
> Review request for KDE Edu, kdewin, Alexander Rieder, and Filipe Saraiva.
> 
> 
> Repository: cantor
> 
> 
> Description
> -------
> 
> This typedef is in both kdewin's sys/types (msvc/include) and python config headers. By adding this definition the typedef present in kdewin is skipped.
> 
> 
> Diffs
> -----
> 
>   src/backends/python2/CMakeLists.txt d27d88f 
> 
> Diff: https://git.reviewboard.kde.org/r/114964/diff/
> 
> 
> Testing
> -------
> 
> Python backend builds and run fine from a clean MSVC build.
> MinGW build was already okay, as per http://winkde.org/pub/kde/ports/win32/repository-4.12/logs/log-mingw-w32-kde_cantor.txt
> 
> 
> Thanks,
> 
> Andrius da Costa Ribas
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20140111/1ede29af/attachment.html>


More information about the kde-edu mailing list